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
hehl2
Torchaudio
Commits
f2a4aac0
"sgl-kernel/python/vscode:/vscode.git/clone" did not exist on "f7f9e41b3619083ab0f07d551cd55bb1e8b321d3"
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(
...
@@ -523,7 +523,8 @@ def mu_law_decoding(
"Please convert the input Tensor to complex type with `torch.view_as_complex` then "
"Please convert the input Tensor to complex type with `torch.view_as_complex` then "
"use `torch.abs`. "
"use `torch.abs`. "
"Please refer to https://github.com/pytorch/audio/issues/1337 "
"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
(
def
complex_norm
(
complex_tensor
:
Tensor
,
complex_tensor
:
Tensor
,
...
@@ -548,7 +549,8 @@ def complex_norm(
...
@@ -548,7 +549,8 @@ def complex_norm(
"Please convert the input Tensor to complex type with `torch.view_as_complex` then "
"Please convert the input Tensor to complex type with `torch.view_as_complex` then "
"use `torch.angle`. "
"use `torch.angle`. "
"Please refer to https://github.com/pytorch/audio/issues/1337 "
"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
(
def
angle
(
complex_tensor
:
Tensor
complex_tensor
:
Tensor
...
@@ -568,7 +570,8 @@ def angle(
...
@@ -568,7 +570,8 @@ def angle(
"Please convert the input Tensor to complex type with `torch.view_as_complex` then "
"Please convert the input Tensor to complex type with `torch.view_as_complex` then "
"use `torch.abs` and `torch.angle`. "
"use `torch.abs` and `torch.angle`. "
"Please refer to https://github.com/pytorch/audio/issues/1337 "
"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
(
def
magphase
(
complex_tensor
:
Tensor
,
complex_tensor
:
Tensor
,
...
@@ -635,8 +638,9 @@ def phase_vocoder(
...
@@ -635,8 +638,9 @@ def phase_vocoder(
if
not
complex_specgrams
.
is_complex
():
if
not
complex_specgrams
.
is_complex
():
warnings
.
warn
(
warnings
.
warn
(
"The use of pseudo complex type in `torchaudio.functional.phase_vocoder` and "
"The support for pseudo complex type in `torchaudio.functional.phase_vocoder` and "
"`torchaudio.transforms.TimeStretch` is now deprecated."
"`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 "
"Please migrate to native complex type by converting the input tensor with "
"`torch.view_as_complex`. "
"`torch.view_as_complex`. "
"Please refer to https://github.com/pytorch/audio/issues/1337 "
"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