audtorch.collate¶
Collate functions manipulate and merge a list
of samples to form a mini-batch, see torch.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.