espnet.nets.pytorch_backend.wavenet.UpSampling
Less than 1 minute
espnet.nets.pytorch_backend.wavenet.UpSampling
class espnet.nets.pytorch_backend.wavenet.UpSampling(upsampling_factor, bias=True)
Bases: Module
Upsampling layer with deconvolution.
- Parameters:upsampling_factor (int) – Upsampling factor.
Initializes internal Module state, shared by both nn.Module and ScriptModule.
forward(x)
Calculate forward propagation.
- Parameters:x (Tensor) – Input tensor with the shape (B, C, T)
- Returns: Tensor with the shape (B, C, T’) where T’ = T * upsampling_factor.
- Return type: Tensor