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
1d3dcdbd
Unverified
Commit
1d3dcdbd
authored
Oct 27, 2021
by
S Harish
Committed by
GitHub
Oct 27, 2021
Browse files
Remove deprecated F.angle (#1935)
parent
3a599315
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
28 deletions
+0
-28
docs/source/functional.rst
docs/source/functional.rst
+0
-4
torchaudio/functional/__init__.py
torchaudio/functional/__init__.py
+0
-2
torchaudio/functional/functional.py
torchaudio/functional/functional.py
+0
-22
No files found.
docs/source/functional.rst
View file @
1d3dcdbd
...
...
@@ -76,10 +76,6 @@ resample
Utilities for pseudo complex tensor. This is not for the native complex dtype, such as `cfloat64`, but for tensors with real-value type and have extra dimension at the end for real and imaginary parts.
angle
-----
.. autofunction:: angle
complex_norm
------------
...
...
torchaudio/functional/__init__.py
View file @
1d3dcdbd
from
.functional
import
(
amplitude_to_DB
,
angle
,
complex_norm
,
compute_deltas
,
compute_kaldi_pitch
,
...
...
@@ -53,7 +52,6 @@ from .filtering import (
__all__
=
[
'amplitude_to_DB'
,
'angle'
,
'complex_norm'
,
'compute_deltas'
,
'compute_kaldi_pitch'
,
...
...
torchaudio/functional/functional.py
View file @
1d3dcdbd
...
...
@@ -29,7 +29,6 @@ __all__ = [
"mu_law_encoding"
,
"mu_law_decoding"
,
"complex_norm"
,
"angle"
,
"phase_vocoder"
,
'mask_along_axis'
,
'mask_along_axis_iid'
,
...
...
@@ -749,27 +748,6 @@ def complex_norm(
return
complex_tensor
.
pow
(
2.
).
sum
(
-
1
).
pow
(
0.5
*
power
)
@
_mod_utils
.
deprecated
(
"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."
,
version
=
"0.11"
,
)
def
angle
(
complex_tensor
:
Tensor
)
->
Tensor
:
r
"""Compute the angle of complex tensor input.
Args:
complex_tensor (Tensor): Tensor shape of `(..., complex=2)`
Return:
Tensor: Angle of a complex tensor. Shape of `(..., )`
"""
return
torch
.
atan2
(
complex_tensor
[...,
1
],
complex_tensor
[...,
0
])
def
phase_vocoder
(
complex_specgrams
:
Tensor
,
rate
:
float
,
...
...
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