espnet2.layers.time_warp.TimeWarp
Less than 1 minute
espnet2.layers.time_warp.TimeWarp
class espnet2.layers.time_warp.TimeWarp(window: int = 80, mode: str = 'bicubic')
Bases: Module
Time warping using torch.interpolate.
- Parameters:
- window β time warp parameter
- mode β Interpolate mode
Initialize internal Module state, shared by both nn.Module and ScriptModule.
extra_repr()
Return the extra representation of the module.
To print customized extra information, you should re-implement this method in your own modules. Both single-line and multi-line strings are acceptable.
forward(x: Tensor, x_lengths: Tensor = None)
Forward function.
- Parameters:
- x β (Batch, Time, Freq)
- x_lengths β (Batch,)
