【发布时间】:2017-04-10 17:51:30
【问题描述】:
我正在尝试这个笔记本: https://github.com/sjchoi86/Tensorflow-101/blob/master/notebooks/char_rnn_sample_tutorial.ipynb
我对这行 In[6] 有问题:
outputs, final_state = seq2seq.rnn_decoder(inputs, istate, cell, loop_function=None, scope='rnnlm')
我得到这个错误:
NameError: name 'seq2seq' is not defined
我使用的是 tensorflow 1.0.1。我试过了
tf.contrib.seq2seq
但我收到错误:
AttributeError: 'module' object has no attribute 'rnn_decoder'
我认为这是 tensorflow 1.0.1 中新实现的 rnn 网络的问题,但我不知道如何解决。
【问题讨论】:
标签: python tensorflow attributeerror lstm recurrent-neural-network