-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in running imdb_lm_gcnn.py #2
Comments
update keras to head should fix it, see this pr. |
Thank you for your answer.
When I run python 3.4 this line is passed successfully and table with model topology is shown, but other exceptions are raised:
What do I do wrong ? |
Probably, my pickle file imdp-full.pkl was not build correctly... Could you provide your file for me to compare and proceed? |
Hi,
I'm trying to run imdb_lm_gcnn.py to test your demo.
I use keras 1.2.0 with tensorflow 0.10.0 on ubuntu 14.04
But I got the following error log:
/usr/local/lib/python3.4/dist-packages/keras/engine/topology.py:368: UserWarning: The
regularizers
property of layers/models is deprecated. Regularization losses are now managed via thelosses
layer/model property.warnings.warn('The
regularizers
property of 'Traceback (most recent call last):
File "imdb_lm_gcnn.py", line 69, in
run_demo()
File "imdb_lm_gcnn.py", line 65, in run_demo
train_model()
File "imdb_lm_gcnn.py", line 43, in train_model
loss='sparse_categorical_crossentropy')
File "/usr/local/lib/python3.4/dist-packages/keras/engine/training.py", line 619, in compile
sample_weight, mask)
File "/usr/local/lib/python3.4/dist-packages/keras/engine/training.py", line 307, in weighted
score_array = fn(y_true, y_pred)
File "/usr/local/lib/python3.4/dist-packages/keras/objectives.py", line 45, in sparse_categorical_crossentropy
return K.sparse_categorical_crossentropy(y_pred, y_true)
File "/usr/local/lib/python3.4/dist-packages/keras/backend/tensorflow_backend.py", line 1993, in sparse_categorical_crossentropy
return tf.reshape(res, [-1, int(output_shape[-2])])
TypeError: int returned non-int (type NoneType)
Do you have any ideas to fix it?
The text was updated successfully, but these errors were encountered: