spyrit.core.noise.NoNoise.forward
- NoNoise.forward(x: tensor) tensor[source]
Simulates measurements
- Args:
x: Batch of images- Shape:
x: \((*, N)\)Output: \((*, M)\)
- Example 1: Using a
Linearmeasurement operator >>> x = torch.FloatTensor(10, 32*32).uniform_(-1, 1) >>> y = linear_acq(x) >>> print(y.shape) torch.Size([10, 400])
- Example 2: Using a
HadamSplitmeasurement operator >>> x = torch.FloatTensor(10, 32*32).uniform_(-1, 1) >>> y = split_acq(x) >>> print(y.shape) torch.Size([10, 800])