Open gaoxuezhao opened 5 years ago
Yes, I have this question too.
+1
+1
you are right. the author is wrong. I also think the following "decoder_inputs = tf.concat((decoder_inputs, y_hat), 1)" is wrong. cuz what we need to concat is not the total y_hat but the last time step of y_hat. so y_hat[:,-1]
I don't understand the conditional sentence in the loop when infer, it is always false。
if tf.reduce_sum(y_hat, 1) == self.token2idx[""]: break