Skip to content

Commit 3efca15

Browse files
committed
Remove f-string from backwards compatibility
1 parent aa35015 commit 3efca15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torchaudio/transforms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ def __init__(self, n_fft=400, n_iter=32, hop_length=None, win_length=None,
113113
power=2., length=None, momentum=0.99):
114114
super(GriffinLim, self).__init__()
115115

116-
assert momentum < 1, f'momentum={momentum} > 1 can be unstable'
117-
assert momentum > 0, f'momentum={momentum} < 0'
116+
assert momentum < 1, 'momentum=%s > 1 can be unstable' % momentum
117+
assert momentum > 0, 'momentum=%s < 0' % momentum
118118

119119
self.n_fft = n_fft
120120
self.n_iter = n_iter

0 commit comments

Comments
 (0)