pulsatrix
Loading...
Searching...
No Matches
audio_collate.hpp File Reference

AudioPadCollate – zero-pads variable-length waveforms into one batch Tensor. More...

Include dependency graph for audio_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.
 

Detailed Description

AudioPadCollate – zero-pads variable-length waveforms into one batch Tensor.