q3_gru.py add_prediction_op() 中dynamic_rnn应该取output作为值而不是state吧?
dulm opened this issue · comments
dulm commented
outputs, state = tf.nn.dynamic_rnn(cell, x, dtype=tf.float32)
output = outputs[:, -1]
preds = tf.sigmoid(output)
虽然gru中两者是等同的
Dingkun.Liu commented
Vanilla RNN中也是这样的,这里应该是不考虑LSTM的。