You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ImportError Traceback (most recent call last) in
----> 1 from keras.models import Sequential
2 from keras.layers import Dense
3 from keras.layers import Reshape
4 from keras.layers.core import Activation
5 from keras.layers.normalization import BatchNormalization
3 frames /usr/local/lib/python3.7/dist-packages/keras/backend.py in
37 from tensorflow.core.protobuf import config_pb2
38 from tensorflow.python.eager import context
---> 39 from tensorflow.python.eager.context import get_config
40 from tensorflow.python.framework import config
41 from keras import backend_config
ImportError: cannot import name 'get_config' from 'tensorflow.python.eager.context' (/usr/local/lib/python3.7/dist-packages/tensorflow_core/python/eager/context.py)
コメント
The text was updated successfully, but these errors were encountered:
ページ数
P.201
内容
tensorflowのバージョン変更のエラーは
%tensorflow_version 1.x
から
!pip install tensorflow-gpu==1.15.2
に変更して解消できましたが、その次のライブラリのインポートでエラーになりました
ImportError Traceback (most recent call last)
in
----> 1 from keras.models import Sequential
2 from keras.layers import Dense
3 from keras.layers import Reshape
4 from keras.layers.core import Activation
5 from keras.layers.normalization import BatchNormalization
3 frames
/usr/local/lib/python3.7/dist-packages/keras/backend.py in
37 from tensorflow.core.protobuf import config_pb2
38 from tensorflow.python.eager import context
---> 39 from tensorflow.python.eager.context import get_config
40 from tensorflow.python.framework import config
41 from keras import backend_config
ImportError: cannot import name 'get_config' from 'tensorflow.python.eager.context' (/usr/local/lib/python3.7/dist-packages/tensorflow_core/python/eager/context.py)
コメント
The text was updated successfully, but these errors were encountered: