Unverified Commit 1b919530 authored by Arijit Roy's avatar Arijit Roy Committed by GitHub
Browse files

Add example for ComplexNorm (#1658)

parent 2e58f18a
...@@ -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']
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment