ValueError: Attempt to reuse RNNCell <tensorflow.contrib.rnn.python.ops.core_rnn_cell_impl.BasicLSTMCell object at 0x7f8b5477f668> with a different variable scope than its first use.
First use of cell was with scope 'embedding_attention_seq2seq/embedding_attention_decoder/attention_decoder/multi_rnn_cell/cell_0/basic_lstm_cell', this attempt is with scope 'embedding_attention_seq2seq/rnn/multi_rnn_cell/cell_0/basic_lstm_cell'.
Please create a new instance of the cell if you would like it to use a different set of weights.
生じる場所はここで
https://github.com/tensorflow/models/blob/master/tutorials/rnn/translate/translate.py#L125
tensorflow1.1 への移行で生じるエラーですがどのようにして解決するのでしょうか
https://github.com/tensorflow/tensorflow/issues/8191
こちらで起きている問題と同じであると思われますが、
models/tutorials/rnn/translate/seq2seq_model.py
などのファイルを直接書き換えて良いのでしょうか?
そして
こちらに書いてあるような
tf.contrib.rnn.BasicLSTMCell(size , state_is_tuple=True )
などの編集では出力されるエラーは変わりませんでした。
あなたの回答
tips
プレビュー