DecodingResult
- class opennmt.utils.DecodingResult(ids, lengths, log_probs, attention, state)[source]
Final decoding result.
- Parameters
ids – The predicted ids of shape
.lengths – The produced sequences length of shape
.log_probs – The cumulated log probabilities of shape
.attention – The attention history of shape
.state – The final decoding state.
Inherits from:
builtins.tuple