Skip to content

Commit 82a918b

Browse files
author
Ji Chen
committed
update format
1 parent 54d8c1e commit 82a918b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/test_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def test_waveform(self):
5858
class TestUpsampleNetwork(common_utils.TorchaudioTestCase):
5959

6060
def test_waveform(self):
61-
"""test the output dimensions after _UpsampleNetwork block.
61+
"""Validate the output dimensions of a _UpsampleNetwork block.
6262
"""
6363

6464
upsample_scales = [5, 5, 8]

torchaudio/models/_wavernn.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ class _Stretch2d(nn.Module):
100100
Examples
101101
>>> stretch2d = _Stretch2d(time_scale=10, freq_scale=5)
102102
103-
>>> input = torch.rand(10, 100, 512)
104-
>>> output = stretch2d(input) # shape: (10, 500, 5120)
103+
>>> input = torch.rand(10, 100, 512) # a random spectrogram
104+
>>> output = stretch2d(input) # shape: (10, 500, 5120)
105105
"""
106106

107107
def __init__(self,
@@ -137,8 +137,8 @@ class _UpsampleNetwork(nn.Module):
137137
138138
Examples
139139
>>> upsamplenetwork = _UpsampleNetwork(upsample_scales=[4, 4, 16])
140-
>>> input = torch.rand(10, 128, 10)
141-
>>> output = upsamplenetwork(input) # shape: (10, 1536, 128), (10, 1536, 128)
140+
>>> input = torch.rand(10, 128, 10) # a random spectrogram
141+
>>> output = upsamplenetwork(input) # shape: (10, 1536, 128), (10, 1536, 128)
142142
"""
143143

144144
def __init__(self,

0 commit comments

Comments
 (0)