mr2.nn.ComplexAsChannel
- class mr2.nn.ComplexAsChannel[source]
-
Wrap module to treat complex numbers as a channel dimension.
- __init__(module: Module, convert_back: bool = True)[source]
Initialize the ComplexAsChannel module.
Wraps a module to treat complex numbers as a channel dimension. For each complex tensor in the input, real and imaginary parts are concatenated along the channel dimension before being passed to the wrapped module.