Implements collate function mainly for seq2seq tasks This expects each sample to contain feature (src_tokens) and targets. This collator is also used for aligned training task.
source not stored for this graph (policy: none)
no outgoing calls