MCPcopy Create free account
hub / github.com/espnet/espnet / test_linear_decoder

Function test_linear_decoder

test/espnet2/diar/decoder/test_linear_decoder.py:9–16  ·  view source on GitHub ↗
(encoder_output_size, num_spk)

Source from the content-addressed store, hash-verified

7@pytest.mark.parametrize("encoder_output_size", [10])
8@pytest.mark.parametrize("num_spk", [2])
9def test_linear_decoder(encoder_output_size, num_spk):
10 linear_decoder = LinearDecoder(
11 encoder_output_size=encoder_output_size, num_spk=num_spk
12 )
13 input = torch.rand(5, 100, encoder_output_size)
14 ilens = torch.tensor([100, 100, 100, 100, 100])
15 output = linear_decoder.forward(input=input, ilens=ilens)
16 assert output.shape == (5, 100, num_spk)

Callers

nothing calls this directly

Calls 2

forwardMethod · 0.95
LinearDecoderClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…