-
Notifications
You must be signed in to change notification settings - Fork 39
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
questions about AttributeError: 'threadsafe_iter' object has no attribute 'shape' #16
Comments
I have the same problem, did someone fix this already? |
This worked for me: update tensorflow, then change in func_epinetmodel.py from tensorflow.contrib.keras.api.keras.optimizers import RMSprop into from keras.optimizers import RMSprop |
Yes, I've tried changing it. But, I am still facing the same problem. |
I fixed the problem. downgrade the tensorflow-gpu=1.10. You can try it.
|
I installed tensorflow-gpu=1.10 to run this code,but apendented a error showing that 'version_info' object has no attribute 'version' when i install matplotlib,another problem is my memory is not enough. can you help me solve both question,thinks very much. |
I have a problem when I try to run the code:
Traceback (most recent call last):
File "EPINET_train.py", line 278, in
initial_epoch=iter00, verbose=1,workers=1)
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/keras/engine/training.py", line 1426, in fit_generator
initial_epoch=initial_epoch)
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/keras/engine/training_generator.py", line 115, in model_iteration
shuffle=shuffle)
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/keras/engine/training_generator.py", line 377, in convert_to_generator_like
num_samples = int(nest.flatten(data)[0].shape[0])
AttributeError: 'threadsafe_iter' object has no attribute 'shape'
Anyone may give me some suggestions about it?
Thanks a lot !!
The text was updated successfully, but these errors were encountered: