Unverified Commit bc1df488 authored by Peter Massey-Plantinga's avatar Peter Massey-Plantinga Committed by GitHub
Browse files

Remove in-place operations from GriffinLim for backprop (#730)

parent b17da7a4
...@@ -265,7 +265,7 @@ def griffinlim( ...@@ -265,7 +265,7 @@ def griffinlim(
angles = rebuilt angles = rebuilt
if momentum: if momentum:
angles = angles - tprev.mul_(momentum / (1 + 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 # Return the final phase estimates
waveform = istft(specgram * angles, waveform = istft(specgram * angles,
......
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