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
1b919530
"...unimernet_transformers.git" did not exist on "bffed0fe1693f18dd39c77aec7971c8cdd262cdc"
Unverified
Commit
1b919530
authored
Aug 03, 2021
by
Arijit Roy
Committed by
GitHub
Aug 03, 2021
Browse files
Add example for ComplexNorm (#1658)
parent
2e58f18a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
torchaudio/transforms.py
torchaudio/transforms.py
+5
-0
No files found.
torchaudio/transforms.py
View file @
1b919530
...
@@ -780,6 +780,11 @@ class ComplexNorm(torch.nn.Module):
...
@@ -780,6 +780,11 @@ class ComplexNorm(torch.nn.Module):
Args:
Args:
power (float, optional): Power of the norm. (Default: to ``1.0``)
power (float, optional): Power of the norm. (Default: to ``1.0``)
Example
>>> complex_tensor = ... # Tensor shape of (…, complex=2)
>>> transform = transforms.ComplexNorm(power=2)
>>> complex_norm = transform(complex_tensor)
"""
"""
__constants__
=
[
'power'
]
__constants__
=
[
'power'
]
...
...
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