When I am reading the seq2seq tutorial here, I can't understand the output of function tf.contrib.seq2seq.dynamic_docode
.
The tutorial access the output the decoder used in training with sample_id = outputs.sample_id
and logits = self.output_layer(outputs.rnn_output)
while in the inference, logits = outputs.rnn_output
and sample_id = outputs.sample_id
. What does the logits
and sample_id
represent here? What is the content of the final_outputs
of function tf.contrib.seq2seq.dynamic_docode
?