Unverified Commit 9d45c8c2 authored by moto's avatar moto Committed by GitHub
Browse files

Set removal release version for F.resample and T.MelScale (#1535)

parent 87be9206
...@@ -1313,7 +1313,7 @@ def _get_sinc_resample_kernel( ...@@ -1313,7 +1313,7 @@ def _get_sinc_resample_kernel(
warnings.warn( warnings.warn(
"Non-integer frequencies are being cast to ints and may result in poor resampling quality " "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`. " "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 " "To work around this issue, manually convert both frequencies to integer values "
"that maintain their resampling rate ratio before passing them into the function " "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 " "Example: To downsample a 44100 hz waveform by a factor of 8, use "
......
...@@ -286,7 +286,7 @@ class MelScale(torch.nn.Module): ...@@ -286,7 +286,7 @@ class MelScale(torch.nn.Module):
if n_stft is None or n_stft == 0: if n_stft is None or n_stft == 0:
warnings.warn( warnings.warn(
'Initialization of torchaudio.transforms.MelScale with an unset weight ' '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`. ' 'Please set a proper `n_stft` value. Typically this is `n_fft // 2 + 1`. '
'Refer to https://github.com/pytorch/audio/issues/1510 ' 'Refer to https://github.com/pytorch/audio/issues/1510 '
'for more details.' 'for more details.'
......
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