Skip to content

Commit

Permalink
use function instead of attribute for real
Browse files Browse the repository at this point in the history
  • Loading branch information
anjali411 committed Jul 1, 2020
1 parent 6795dc4 commit 7311a8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchaudio/functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ def phase_vocoder(
complex_specgrams.size(-1),
rate,
device=complex_specgrams.device,
dtype=complex_specgrams.real.dtype)
dtype=torch.real(complex_specgrams).dtype)

alphas = time_steps % 1.0
phase_0 = complex_specgrams[..., :1].angle()
Expand Down

0 comments on commit 7311a8f

Please sign in to comment.