spyrit.core.prep.Rerange.backward

Rerange.backward(x: tensor) tensor[source]

Applies the inverse affine transform to the input tensor.

Args:

x (torch.tensor): The input tensor to apply the inverse affine transform to. Has arbitrary shape.

Returns:

torch.tensor: The input tensor with the inverse affine transform applied. It has the same shape as the input tensor.