File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -57,10 +57,11 @@ class MelResNet(nn.Module):
5757 input_dims: the number of input sequence (default=100).
5858 hidden_dims: the number of compute dimensions (default=128).
5959 output_dims: the number of output sequence (default=128).
60+ pad: the number of kernal size (pad * 2 + 1) in the first Conv1d layer (default=2).
6061
6162 Examples::
6263 >>> melresnet = MelResNet(res_blocks=10, input_dims=100,
63- hidden_dims=128, output_dims=128)
64+ hidden_dims=128, output_dims=128, pad=2 )
6465 >>> input = torch.rand(10, 100, 512)
6566 >>> output = melresnet(input)
6667 """
@@ -94,7 +95,7 @@ def forward(self, x: Tensor) -> Tensor:
9495
9596 Shape:
9697 - x: :math:`(N, S, T)`.
97- - output: :math:`(N, P, T-4 )`.
98+ - output: :math:`(N, P, T-2*pad )`.
9899 where N is the batch size, S is the number of input sequence,
99100 P is the number of ouput sequence, T is the length of input sequence.
100101 """
You can’t perform that action at this time.
0 commit comments