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
9d45c8c2
Unverified
Commit
9d45c8c2
authored
May 31, 2021
by
moto
Committed by
GitHub
May 31, 2021
Browse files
Set removal release version for F.resample and T.MelScale (#1535)
parent
87be9206
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
torchaudio/functional/functional.py
torchaudio/functional/functional.py
+1
-1
torchaudio/transforms.py
torchaudio/transforms.py
+1
-1
No files found.
torchaudio/functional/functional.py
View file @
9d45c8c2
...
...
@@ -1313,7 +1313,7 @@ def _get_sinc_resample_kernel(
warnings
.
warn
(
"Non-integer frequencies are being cast to ints and may result in poor resampling quality "
"because the underlying algorithm requires an integer ratio between `orig_freq` and `new_freq`. "
"Using non-integer valued frequencies will throw an error in
the next
release. "
"Using non-integer valued frequencies will throw an error in release
0.10
. "
"To work around this issue, manually convert both frequencies to integer values "
"that maintain their resampling rate ratio before passing them into the function "
"Example: To downsample a 44100 hz waveform by a factor of 8, use "
...
...
torchaudio/transforms.py
View file @
9d45c8c2
...
...
@@ -286,7 +286,7 @@ class MelScale(torch.nn.Module):
if
n_stft
is
None
or
n_stft
==
0
:
warnings
.
warn
(
'Initialization of torchaudio.transforms.MelScale with an unset weight '
'`n_stft=None` is deprecated and will be removed
from a future
release. '
'`n_stft=None` is deprecated and will be removed
in
release
0.10
. '
'Please set a proper `n_stft` value. Typically this is `n_fft // 2 + 1`. '
'Refer to https://github.com/pytorch/audio/issues/1510 '
'for more details.'
...
...
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