记录在pycharm中使用LSTM时导入包报错问题
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import LSTM, Dense
导入这些时报错。解决方法:
分两步写。
from tensorflow.python import keras
from keras.models import Sequential
from keras.layers import LSTM, Dense