ホームページ  >  に質問  >  本文

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都是我新安装的,什么也没做呀?

天蓬老师天蓬老师2741日前930

全員に返信(0)返信します

応答なし
  • キャンセル返事