-
Notifications
You must be signed in to change notification settings - Fork 19.5k
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
Tensorflow only: TypeError: Expected int32, got list containing Tensors of type '_Message' instead. #3548
Comments
I struggled with the same problem, and solved it. http://stackoverflow.com/questions/35374958/reshape-tensor-using-placeholder-value |
Same problem here. Running Tensorflow-gpu 1.0.0 . Any plans for fixing this on Keras backend? |
Same problem |
Same problem. I suppose it broke again due to some TF update. |
Same problem (different line in the tensorflow_backend.py) Traceback (most recent call last): |
The cause of the issue is an API change in tensorflow (tf.concat): https://groups.google.com/a/tensorflow.org/forum/#!msg/discuss/OePXmC9kJ7o/SRErOoYCDQAJ I think the bug was fixed in 1de4bf1 which is already published under Keras 1.2.2 |
@birnbaum thanks for the update and helping out. I just need to report: I uninstalled and reinstalled everything. I am running the latest Keras version 1.2.2 and the latest Tensorflow GPU 1.0.0 . Same issue. |
@mongoose54 It works in the keras 2. You will need to manually install it, no pip installation is available. |
@mayanksatnalika I just upgraded to Keras 2 but i get errors at other places. Like this one:
I think that's because of the upcoming changed in the new API? |
Same probelm here with the latest Tensorflow GPU 1.0.0. Is there any way to fix it without upgrading keras to 2.0? |
Seeing the same error with TF-0.12.1 and Keras 2.0.1. I had upgraded to latest Keras using pip install. Please let us know when the issue is fixed in latest version of Keras so that we can migrate to it. |
Seeing the same error with TF-0.12.1 and Keras 2.0.3. Someone can fix it? |
I'm having the same problem with Keras 2.0.3 and TF 1.0.1. |
Can someone post a simple standalone code snippet to reproduce this issue? |
I got the error with this model:
However, I pip installed directly from master and the problem is gone. |
Solved it by upgrading Tensorflow 1.0 to 1.1.0. |
I have same problem with tensorflow 1.1.0 and keras 2.0.4. Any suggestion? |
I'm facing the same issue. Please let me know how to go about it. Error : File "C:\Users\anagha\Anaconda3\lib\site-packages\tensorflow\python\framework\tensor_util.py", line 302, in _AssertCompatible TypeError: Expected int32, got <tensorflow.python.ops.variables.Variable object at 0x000001E760125860> of type 'Variable' instead. |
upgrade Tensorflow 1.0 to 1.1.0. |
Still facing the same issue, after upgrading from 1.0 to 1.1.0 |
works with Tensorflow 1.1 and Keras 1.2.2 |
Same issue for Keras 2.0.6. Resolved by updating TensorFlow to 1.2.1. |
@Anagha5 Please review your code if there still is the same problem —— the reverse about the parameter of tf.concat() |
I'm facing the same error, on python version 3.7.0, keras version 2.2.0 and tensorflow version 0.12.0. I've tried all the solutions listed above, I've uninstalled and reinstalled keras and tf, but I'm still facing the same error :( |
@Remorax have you tried upgrading tensorflow version? 0.12 it's a very old version. |
This occurs only when using TF:
I get:
TypeError: Expected int32, got list containing Tensors of type '_Message' instead.
Theano version works fine
The text was updated successfully, but these errors were encountered: