nnsvs.train_util.collate_fn_default
- nnsvs.train_util.collate_fn_default(batch, reduction_factor=1, stream_sizes=None, streams=None)[source]
Create batch
- Parameters:
- Returns:
- Tuple of batch
x (FloatTensor) : Network inputs (B, max(T), D_in)
y (FloatTensor) : Network targets (B, max(T), D_out)
lengths (LongTensor): Input lengths
- Return type: