Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
hehl2
Torchaudio
Commits
ec3ab990
"...kernels/git@developer.sourcefind.cn:change/sglang.git" did not exist on "6e2da5156176ed2d7fe2445b7c7316bc1650b20a"
Unverified
Commit
ec3ab990
authored
Jul 28, 2021
by
yangarbiter
Committed by
GitHub
Jul 28, 2021
Browse files
Fix Tacotron2 Postnet forward (#1647)
parent
df776150
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
torchaudio/prototype/tacotron2.py
torchaudio/prototype/tacotron2.py
+1
-3
No files found.
torchaudio/prototype/tacotron2.py
View file @
ec3ab990
...
@@ -354,13 +354,11 @@ class _Postnet(nn.Module):
...
@@ -354,13 +354,11 @@ class _Postnet(nn.Module):
x (Tensor): Tensor with shape (n_batch, ``n_mels``, max of ``mel_specgram_lengths``).
x (Tensor): Tensor with shape (n_batch, ``n_mels``, max of ``mel_specgram_lengths``).
"""
"""
i
=
0
for
i
,
conv
in
enumerate
(
self
.
convolutions
):
for
conv
in
self
.
convolutions
:
if
i
<
self
.
n_convs
-
1
:
if
i
<
self
.
n_convs
-
1
:
x
=
F
.
dropout
(
torch
.
tanh
(
conv
(
x
)),
0.5
,
training
=
self
.
training
)
x
=
F
.
dropout
(
torch
.
tanh
(
conv
(
x
)),
0.5
,
training
=
self
.
training
)
else
:
else
:
x
=
F
.
dropout
(
conv
(
x
),
0.5
,
training
=
self
.
training
)
x
=
F
.
dropout
(
conv
(
x
),
0.5
,
training
=
self
.
training
)
i
+=
1
return
x
return
x
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment