|
pulsatrix
|
AudioPadCollate – zero-pads variable-length waveforms into one batch Tensor. More...
#include "pulsatrix/collate.hpp"
Go to the source code of this file.
Namespaces | |
| namespace | pulsatrix |
Functions | |
| CollateFn | pulsatrix::AudioPadCollate () |
| Builds a CollateFn that zero-pads (silence) variable-length waveforms (sample.fields[0], shape (1, channels, num_samples) – WavReader's/ AudioFolderDataset's convention) to the batch's own max sample count, producing one (N, channels, max_samples) Tensor, plus a (N,) length field. Phase 4's version of PadCollate (Phase 3, text) – a second proof that the CollateFn extension point handles ragged/variable-length modalities with zero Dataset/DataLoader/Batch interface changes. | |
AudioPadCollate – zero-pads variable-length waveforms into one batch Tensor.