mrpro.operators.MagnitudeOp

class mrpro.operators.MagnitudeOp(*args, **kwargs)[source]

Bases: EndomorphOperator

Magnitude of input tensors.

__init__(*args, **kwargs) None

Initialize internal Module state, shared by both nn.Module and ScriptModule.

forward(*x: Tensor) tuple[Tensor, ...][source]

Magnitude of tensors.

Parameters:

x – input tensors

Return type:

tensors with magnitude (absolute values) of input tensors