解决报错“ImportError: cannot import name 'get_config' from 'tensorflow.python.eager.context'” 安装的tensorflow版本和keras版本可能不合适的时候,会出现报错
1 2 3 4 5 6 7
module 'tensorflow_core.compat.v2' has no attribute '__internal__'
from tensorflow import keras from keras import layers --> from tensorflow import keras from tensorflow.keras import layers
1
Cannot convert a symbolic Tensor (lstm/strided_slice:0) to a numpy array.
1
conda install -c anaconda h5py
LSTM+Dense报错
1 2 3 4
NotImplementedError: Cannot convert a symbolic Tensor (lstm/strided_slice:0) to a numpy array. This error may indicate that you're trying to pass a Tensor to a NumPy call, which is not supported