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
ImportError: cannot import name 'initializations' #6278
Comments
In Keras 2.0,
|
In Keras 2.0, initializations was renamed as initializers. You should therefore instead write
from keras import initializers
At 2017-04-23 11:40:24, "Franck Dernoncourt" <notifications@github.com> wrote:
I have the same issue. My environment: tensorflow==1.1.0; Keras==2.0.3; Python 2.7.12; Ubuntu 16.04 LTS x64.
Running from keras import initializations in the python interpreter triggers the issue:
>> from keras import initializations
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name initializations
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
It worked for me ! |
It works for me, too! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please make sure that the boxes below are checked before you submit your issue. If your issue is an implementation question, please ask your question on StackOverflow or join the Keras Slack channel and ask there instead of filing a GitHub issue.
Thank you!
Check that you are up-to-date with the master branch of Keras. You can update with:
pip install git+git://github.com/fchollet/keras.git --upgrade --no-deps
If running on TensorFlow, check that you are up-to-date with the latest version. The installation instructions can be found here.
If running on Theano, check that you are up-to-date with the master branch of Theano. You can update with:
pip install git+git://github.com/Theano/Theano.git --upgrade --no-deps
Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).
The text was updated successfully, but these errors were encountered: