【发布时间】:2019-09-17 17:59:55
【问题描述】:
ml = Sequential()
ml.add(LSTM(64,dropout=0.5, recurrent_dropout=0.5,return_sequences=True))
这给了我一个错误:AttributeError: module 'tensorflow' has no attribute 'get_default_graph'。
ml 是模型的名称。我无法向模型添加任何层。请帮忙。
我正在使用的依赖项是:
- 张量流:2.0.0-beta1
- Keras:2.2.4
- Python:3.7.3
【问题讨论】:
标签: python-3.x tensorflow keras