espnet2.asr.preencoder.linear.LinearProjection
Less than 1 minute
espnet2.asr.preencoder.linear.LinearProjection
class espnet2.asr.preencoder.linear.LinearProjection(input_size: int, output_size: int, dropout: float = 0.0)
Bases: AbsPreEncoder
Linear Projection Preencoder.
Initialize the module.
forward(input: Tensor, input_lengths: Tensor) → Tuple[Tensor, Tensor]
Forward.
output_size() → int
Get the output size.