tfft.FftwOptions

class FftwOptions(*, planning_rigor: tensorflow_nufft.python.ops.nufft_options.FftwPlanningRigor = FftwPlanningRigor.AUTO)

Bases: pydantic.main.BaseModel

Represents options for the FFTW library.

These are only relevant when using the CPU kernels of NUFFT.

Tip

You can set the FFTW options of the nufft through the fftw property of tfft.Options.

Example

>>> options = tfft.Options()
>>> options.fftw.planning_rigor = tfft.FftwPlanningRigor.PATIENT
>>> tfft.nufft(x, k, options=options)
planning_rigor

Controls the rigor (and time) of the planning process. See tfft.FftwPlanningRigor for more information.

Type

tensorflow_nufft.python.ops.nufft_options.FftwPlanningRigor