关于使用Keras 中Sequential
语句引用时报错的解决方法
如果使用以下两句引用时报错Cannot find reference 'Sequential' in 'models.py'
from
keras.models import Sequential
from
keras.layers import Dense,Dropout
那么请将上面两句改成
from tensorflow.python.keras import layers, models
在使用sequential和dense时
用
models.Sequential()和
layers.Dense即可解决。