Simple decoder function for a sequence-to-sequence model used in the
simple_decoder_fn_train is a simple training function for a
sequence-to-sequence model. It should be used when
in the training mode.
simple_decoder_fn_train is called with a set of the user arguments and
decoder_fn, which can be passed to the
dynamic_fn_train = simple_decoder_fn_train(encoder_state) outputs_train, state_train = dynamic_rnn_decoder( decoder_fn=dynamic_fn_train, ...)
Further usage can be found in the
encoder_state: The encoded state to initialize the
None) NameScope for the decoder function; defaults to "simple_decoder_fn_train"
A decoder function with the required interface of
intended for training.