Skip to content

Commit ca16902

Browse files
authored
Add missing from __future__ import division (#204)
1 parent 8fcd9fd commit ca16902

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

test/test_jit.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from __future__ import division
12
import torch
23
import torchaudio.functional as F
34
import torchaudio.transforms as transforms

torchaudio/functional.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from __future__ import division
12
import math
23
import torch
34

@@ -61,8 +62,8 @@ def istft(stft_matrix, # type: Tensor
6162
could be useful. If ``length`` is ``None`` then padding will be aggressively removed
6263
(some loss of signal).
6364
64-
[1] D. W. Griffin and J. S. Lim, Signal estimation from modified short-time Fourier transform,
65-
IEEE Trans. ASSP, vol.32, no.2, pp.236243, Apr. 1984.
65+
[1] D. W. Griffin and J. S. Lim, "Signal estimation from modified short-time Fourier transform,"
66+
IEEE Trans. ASSP, vol.32, no.2, pp.236-243, Apr. 1984.
6667
6768
Args:
6869
stft_matrix (torch.Tensor): Output of stft where each row of a channel is a frequency and each

0 commit comments

Comments
 (0)