spyrit.core.recon.PositiveParameters.forward

PositiveParameters.forward()[source]

Returns the absolute value of the stored signed tensor.

Example:
>>> values = [-1., 2., -3., 4.]
>>> pos_params = PositiveParameters(values)
>>> print(pos_params())
tensor([1., 2., 3., 4.], grad_fn=<AbsBackward0>)