wrappers
torch_to_nnef.nemo_tract.wrappers
CollapseBatchDimWrapper
Bases: Module
Wrap a NeMo exportable subnet to remove batch from its interface.
DecoderWithoutTargetLength
Bases: Module
Wrap decoder/joint+decoder to remove 'target_length' argument/output.
RenameOutputs
Bases: Module
Wrapper that renames output tensor names for export-time only.
Leaves computation unchanged and preserves input names. Useful to avoid name collisions between inputs and outputs (e.g., both named 'length').
WrapAudioPreprocessor
Bases: Module
Wraps the AudioPreprocessor to fix input_example empty.
WrapPreprocessorCast
Bases: Module
Wraps the preprocessor to add a cast to float16/32 at the output.