espnet2.asvspoof.decoder.linear_decoder.LinearDecoder
Less than 1 minute
espnet2.asvspoof.decoder.linear_decoder.LinearDecoder
class espnet2.asvspoof.decoder.linear_decoder.LinearDecoder(encoder_output_size: int)
Bases: AbsDecoder
Linear decoder for speaker diarization
Initializes internal Module state, shared by both nn.Module and ScriptModule.
forward(input: Tensor, ilens: Tensor | None)
Forward.
- Parameters:
- input (torch.Tensor) – hidden_space [Batch, T, F]
- ilens (torch.Tensor) – input lengths [Batch]