"git@developer.sourcefind.cn:OpenDAS/torchaudio.git" did not exist on "d41d30abb91962742df8518e2dcdd49520e14375"
Unverified Commit 5418d937 authored by moto's avatar moto Committed by GitHub
Browse files

Add deprecation warnings to load_wav functions (#905)

parent 92b027b0
...@@ -73,6 +73,7 @@ def load(filepath: str, ...@@ -73,6 +73,7 @@ def load(filepath: str,
@_mod_utils.requires_module('soundfile') @_mod_utils.requires_module('soundfile')
@_mod_utils.deprecated('Please use "torchaudio.load".', '0.9.0')
@common._impl_load_wav @common._impl_load_wav
def load_wav(filepath, **kwargs): def load_wav(filepath, **kwargs):
kwargs['normalization'] = 1 << 16 kwargs['normalization'] = 1 << 16
......
...@@ -63,6 +63,7 @@ def load(filepath: str, ...@@ -63,6 +63,7 @@ def load(filepath: str,
@_mod_utils.requires_module('torchaudio._torchaudio') @_mod_utils.requires_module('torchaudio._torchaudio')
@_mod_utils.deprecated('Please use "torchaudio.load".', '0.9.0')
@common._impl_load_wav @common._impl_load_wav
def load_wav(filepath, **kwargs): def load_wav(filepath, **kwargs):
kwargs['normalization'] = 1 << 16 kwargs['normalization'] = 1 << 16
......
...@@ -175,6 +175,7 @@ def save( ...@@ -175,6 +175,7 @@ def save(
@_mod_utils.requires_module('torchaudio._torchaudio') @_mod_utils.requires_module('torchaudio._torchaudio')
@_mod_utils.deprecated('Please use "torchaudio.load".', '0.9.0')
def load_wav( def load_wav(
filepath: str, filepath: str,
frame_offset: int = 0, frame_offset: int = 0,
......
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