We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am studying Advanced dynamic seq2seq with TensorFlow. When i executed source code, it works well. But i have a question among the below source code.
In [21]:
def loop_fn(time, previous_output, previous_state, previous_loop_state): if previous_state is None: # time == 0 assert previous_output is None and previous_state is None return loop_fn_initial() else: return loop_fn_transition(time, previous_output, previous_state, previous_loop_state) decoder_outputs_ta, decoder_final_state, _ = tf.nn.raw_rnn(decoder_cell, loop_fn) decoder_outputs = decoder_outputs_ta.stack()
decoder_outputs_ta, decoder_final_state, _ = tf.nn.raw_rnn(decoder_cell, loop_fn)
Above bolded line call loop_fn method, but there's no input argument. Then, i wonder how loop_fn method works well.
The text was updated successfully, but these errors were encountered:
Check out loop_fn_transition above, it feeds PAD token at the 1 decoding step, then feeds previously generated tokens.
loop_fn_transition
Sorry, something went wrong.
No branches or pull requests
I am studying Advanced dynamic seq2seq with TensorFlow.
When i executed source code, it works well.
But i have a question among the below source code.
In [21]:
decoder_outputs_ta, decoder_final_state, _ = tf.nn.raw_rnn(decoder_cell, loop_fn)
Above bolded line call loop_fn method, but there's no input argument.
Then, i wonder how loop_fn method works well.
The text was updated successfully, but these errors were encountered: