Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions torchaudio/models/_wavernn.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from typing import Optional

from torch import Tensor
from torch import nn

Expand Down Expand Up @@ -65,7 +63,7 @@ class _MelResNet(nn.Module):

Examples::
>>> melresnet = _MelResNet(res_blocks=10, input_dims=100,
hidden_dims=128, output_dims=128, pad=2)
hidden_dims=128, output_dims=128, pad=2)
>>> input = torch.rand(10, 100, 512)
>>> output = melresnet(input)
"""
Expand Down Expand Up @@ -99,9 +97,9 @@ def forward(self, x: Tensor) -> Tensor:

Shape:
- x: :math:`(N, S, T)`.
- output: :math:`(N, P, T-2*pad)`.
- output: :math:`(N, P, T - 2 * pad)`.
where N is the batch size, S is the number of input sequence,
P is the number of ouput sequence, T is the length of input sequence.
P is the number of output sequence, T is the length of input sequence.
"""

return self.melresnet_model(x)