-
Notifications
You must be signed in to change notification settings - Fork 74k
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
AttributeError: 'module' object has no attribute 'pack' #7550
Comments
As far as I know, |
Yes, the keras needs to be updated since this is renamed to stack in tf 1.0. |
I have the same issue. I've upgraded to tensorflow version 1.0 and then tried to run a python program that uses keras like this Update: It was actually something wrong in my code. It turns out that tf.pack is OK. I upgraded keras = 1.2.0 which still remains the same. |
I apologize, but I'm confused now. If the issue is resolved please close it. If not, please re-state exactly what is still wrong and what you would like fixed. Thanks so much! |
I am having this problem as well. I pip installed tensorflow in anaconda with python3 environment. Can we revert anaconda to an earlier version of tensorflow to at least temporarily get around this? |
@tawantinsuyu, unfortunately no, we won't downgrade the default version, because that would break users who already updated. To use an older version, an easy way is to use docker. You can also find the previous .whl from our web site and install that, but we don't recommend that. Good luck. Thanks! |
Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks! |
I have the same problem, my version of tensorflow is 1.0.1, I changed the 'pack' into 'stack', but it did't work. I hope you can help me @zhaopku |
In page 105 of the book https://www.scribd.com/read/365181872/Building-Machine-Learning-Projects-with-TensorFlow# it also has a call to 'pack' that does not work with the latest version of Tensorflow. |
I had the same issue with TensorFlow. When i tried it in PyCharm it worked. Firstly I thought uninstall and install keras solved it. Still have the same error at Jupyter Notebook (Python 3.6) |
Any solution to this problem? I am having the same problem. tensorflow 1.13, python 3.6. |
We can replace tf.pack() with tf.stack in Jupyter Notebook as well. |
How did you solve this issue? I am facing same issue. |
Training images using keras with tf backend.The error shows that tf (version==0.12.head) has no attribute "pack".
The text was updated successfully, but these errors were encountered: