spyrit.core.recon.Denoise_layer.forward
- Denoise_layer.forward(inputs: tensor) tensor[source]
Applies a transformation to the incoming data: \(y = \sigma_\text{prior}^2/(\sigma_\text{prior}^2+x)\).
\(x\) is the input tensor (see
inputs) and \(\sigma_\text{prior}\) is the standard deviation prior (seeself.weight).- Args:
inputs(torch.tensor): input tensor \(x\) of shape \((N, *, in\_features)\)- Returns:
torch.tensor: The transformed data \(y\) of shape \((N, in\_features)\)
Shape: