【发布时间】:2018-08-02 19:42:06
【问题描述】:
我在下面的代码中使用 seq2seq,我发现下面的错误:
cell = tf.nn.rnn_cell.BasicLSTMCell(size)
a, b = tf.nn.dynamic_rnn(cell, seq_input, dtype=tf.float32)
cell_a = tf.contrib.rnn.OutputProjectionWrapper(cell, frame_dim)
dec_output= tf.contrib.legacy_seq2seq.rnn_decoder(seq_input, b, cell_a)
但我得到了错误:
TypeError: 'Tensor' object is not iterable.
我查了一下,它来自 seq2seq 行。
【问题讨论】:
标签: tensorflow machine-learning lstm recurrent-neural-network sequence-to-sequence