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
5418d937
Unverified
Commit
5418d937
authored
Sep 15, 2020
by
moto
Committed by
GitHub
Sep 15, 2020
Browse files
Add deprecation warnings to load_wav functions (#905)
parent
92b027b0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
0 deletions
+3
-0
torchaudio/backend/soundfile_backend.py
torchaudio/backend/soundfile_backend.py
+1
-0
torchaudio/backend/sox_backend.py
torchaudio/backend/sox_backend.py
+1
-0
torchaudio/backend/sox_io_backend.py
torchaudio/backend/sox_io_backend.py
+1
-0
No files found.
torchaudio/backend/soundfile_backend.py
View file @
5418d937
...
...
@@ -73,6 +73,7 @@ def load(filepath: str,
@
_mod_utils
.
requires_module
(
'soundfile'
)
@
_mod_utils
.
deprecated
(
'Please use "torchaudio.load".'
,
'0.9.0'
)
@
common
.
_impl_load_wav
def
load_wav
(
filepath
,
**
kwargs
):
kwargs
[
'normalization'
]
=
1
<<
16
...
...
torchaudio/backend/sox_backend.py
View file @
5418d937
...
...
@@ -63,6 +63,7 @@ def load(filepath: str,
@
_mod_utils
.
requires_module
(
'torchaudio._torchaudio'
)
@
_mod_utils
.
deprecated
(
'Please use "torchaudio.load".'
,
'0.9.0'
)
@
common
.
_impl_load_wav
def
load_wav
(
filepath
,
**
kwargs
):
kwargs
[
'normalization'
]
=
1
<<
16
...
...
torchaudio/backend/sox_io_backend.py
View file @
5418d937
...
...
@@ -175,6 +175,7 @@ def save(
@
_mod_utils
.
requires_module
(
'torchaudio._torchaudio'
)
@
_mod_utils
.
deprecated
(
'Please use "torchaudio.load".'
,
'0.9.0'
)
def
load_wav
(
filepath
:
str
,
frame_offset
:
int
=
0
,
...
...
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