Unverified Commit 03da871f authored by jimchen90's avatar jimchen90 Committed by GitHub
Browse files

MelResNet spacing and typing adjustment (#725)



* spacing and typing adjustment

* remove import list
Co-authored-by: default avatarJi Chen <jimchen90@devfair0160.h2.fair>
parent 4318fc5c
from typing import Optional
from torch import Tensor
from torch import nn
......@@ -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)
"""
......@@ -99,9 +97,9 @@ class _MelResNet(nn.Module):
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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment