espnet2.asr.postencoder.length_adaptor_postencoder.LengthAdaptorPostEncoder
Less than 1 minute
espnet2.asr.postencoder.length_adaptor_postencoder.LengthAdaptorPostEncoder
class espnet2.asr.postencoder.length_adaptor_postencoder.LengthAdaptorPostEncoder(input_size: int, length_adaptor_n_layers: int = 0, input_layer: str | None = None, output_size: int | None = None, dropout_rate: float = 0.1, return_int_enc: bool = False)
Bases: AbsPostEncoder
Length Adaptor PostEncoder.
Initialize the module.
forward(input: Tensor, input_lengths: Tensor) → Tuple[Tensor, Tensor]
Forward.
output_size() → int
Get the output size.