Decoding Output
Decode the model's outputs for training and inference.
We'll cover the following...
We'll cover the following...
Chapter Goals:
Retrieve the decoder outputs and return the model's logits during training
After creating the decoder object for our model, we can perform the decoding using the decoder object as dynamic_decode function.
The decoder object takes in input, initial_state, sequence_length, and isTraining as required argument. It returns a tuple containing three elements:
The decoder's output. For a
BasicDecoderinput, the decoder's output takes the form of aBasicDecoderOutputobject.The decoder's final state. This isn't ...