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
f2a4aac0
Unverified
Commit
f2a4aac0
authored
Jun 04, 2021
by
moto
Committed by
GitHub
Jun 04, 2021
Browse files
Set removal version of pseudo complex support (#1553)
parent
d4d09074
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
torchaudio/functional/functional.py
torchaudio/functional/functional.py
+9
-5
No files found.
torchaudio/functional/functional.py
View file @
f2a4aac0
...
...
@@ -523,7 +523,8 @@ def mu_law_decoding(
"Please convert the input Tensor to complex type with `torch.view_as_complex` then "
"use `torch.abs`. "
"Please refer to https://github.com/pytorch/audio/issues/1337 "
"for more details about torchaudio's plan to migrate to native complex type."
"for more details about torchaudio's plan to migrate to native complex type."
,
version
=
"0.11"
,
)
def
complex_norm
(
complex_tensor
:
Tensor
,
...
...
@@ -548,7 +549,8 @@ def complex_norm(
"Please convert the input Tensor to complex type with `torch.view_as_complex` then "
"use `torch.angle`. "
"Please refer to https://github.com/pytorch/audio/issues/1337 "
"for more details about torchaudio's plan to migrate to native complex type."
"for more details about torchaudio's plan to migrate to native complex type."
,
version
=
"0.11"
,
)
def
angle
(
complex_tensor
:
Tensor
...
...
@@ -568,7 +570,8 @@ def angle(
"Please convert the input Tensor to complex type with `torch.view_as_complex` then "
"use `torch.abs` and `torch.angle`. "
"Please refer to https://github.com/pytorch/audio/issues/1337 "
"for more details about torchaudio's plan to migrate to native complex type."
"for more details about torchaudio's plan to migrate to native complex type."
,
version
=
"0.11"
,
)
def
magphase
(
complex_tensor
:
Tensor
,
...
...
@@ -635,8 +638,9 @@ def phase_vocoder(
if
not
complex_specgrams
.
is_complex
():
warnings
.
warn
(
"The use of pseudo complex type in `torchaudio.functional.phase_vocoder` and "
"`torchaudio.transforms.TimeStretch` is now deprecated."
"The support for pseudo complex type in `torchaudio.functional.phase_vocoder` and "
"`torchaudio.transforms.TimeStretch` is now deprecated and will be removed "
"from 0.11 release."
"Please migrate to native complex type by converting the input tensor with "
"`torch.view_as_complex`. "
"Please refer to https://github.com/pytorch/audio/issues/1337 "
...
...
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