AttributeError:Module' tensorflow.contrib.rnn'没有属性' GRUCell'

时间:2017-04-10 17:21:03

标签: python tensorflow

我正在尝试Tensorflow Seq2Seq Translate示例并收到此错误:

AttributeError: module 'tensorflow.contrib.rnn' has no attribute 'GRUCell'

我在具有Tensorflow 0.10的服务器上运行。

1 个答案:

答案 0 :(得分:0)

Tensorflow的contrib API仅支持更高版本的GRUCell,即1.0。对于早期版本中可能的RNN单元,请参阅here