Collate functions manipulate and merge a list of samples to form a mini-batch, see :pytorch.utils.data.DataLoader
. An example use case is batching sequences of variable-length, which requires padding each sample to the maximum length in the batch.
audtorch.collate
Collation
Seq2Seq