Tensorflow序列到序列模型

时间:2017-02-05 20:33:41

标签: tensorflow

当我尝试在序列模型教程here中执行“translate.py”时,我收到以下错误。任何人都可以帮助我。

错误:

{ 1, 2, 2, 5, 7, 2,  ,2 } 

1 个答案:

答案 0 :(得分:0)

您使用的代码似乎只是错过了prepare_wmt_data中的data_utils.py功能;它位于示例的this version中。您还可以查看

中序列到序列示例代码的完整(和最新)版本

https://github.com/tensorflow/models/tree/master/tutorials/rnn/translate

他们应该使用TensorFlow~0.12。