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
OpenDAS
Torchaudio
Commits
bc1df488
Unverified
Commit
bc1df488
authored
Jun 18, 2020
by
Peter Massey-Plantinga
Committed by
GitHub
Jun 18, 2020
Browse files
Remove in-place operations from GriffinLim for backprop (#730)
parent
b17da7a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchaudio/functional.py
torchaudio/functional.py
+1
-1
No files found.
torchaudio/functional.py
View file @
bc1df488
...
...
@@ -265,7 +265,7 @@ def griffinlim(
angles
=
rebuilt
if
momentum
:
angles
=
angles
-
tprev
.
mul_
(
momentum
/
(
1
+
momentum
))
angles
=
angles
.
div
_
(
complex_norm
(
angles
).
add
_
(
1e-16
).
unsqueeze
(
-
1
).
expand_as
(
angles
))
angles
=
angles
.
div
(
complex_norm
(
angles
).
add
(
1e-16
).
unsqueeze
(
-
1
).
expand_as
(
angles
))
# Return the final phase estimates
waveform
=
istft
(
specgram
*
angles
,
...
...
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