optim.pocs

Contents

optim.pocs#

bartorch.optim.pocs()#

Projection onto convex sets in one call: optim.POCS(projections, **settings)(y, x0=x0).

The function takes no encoding: the data and the sets belong to the projections.

Parameters:
  • y (tensor) – Fixes the shape, dtype and device of the zero start; its values are not read.

  • projections (sequence) – Callables on a tensor, or bartorch.priors terms, as POCSBlock takes them.

  • x0 (tensor, default=None) – Starting iterate; zero of y’s shape when omitted.

  • **settings – Settings of POCS: maxiter (50).

Returns:

The iterate after the last sweep.

Return type:

torch.Tensor