登录

python - 用keras运行示例LSTM程序时出现找不到tf.select错误

用anaconda安装了tensorflow和keras后,运行一个LSTM的示例程序(这个程序没问题,之前运行过)出现错误:
AttributeError: 'module' object has no attribute 'select'
具体是在keras的tensorflow——backend.py这个里面的
return tf.select(tf.random_uniform(shape, dtype=dtype, seed=seed) <= p,
这一句报错的。
求问这是为什么呀?tensorflow和keras都是我新安装的,什么也没做呀?

# Python
天蓬老师 天蓬老师 2558 天前 735 次浏览

全部回复(0) 我要回复

暂无回复
  • 取消 回复 发送