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 Linear measurement 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 HadamSplit measurement operator
>>> x = torch.FloatTensor(10, 32*32).uniform_(-1, 1)
>>> y = split_acq(x)
>>> print(y.shape)
torch.Size([10, 800])