Fourier Neural Operators #
fno is polymorphic in spatial rank and uses separable FFTs or a dense multidimensional DFT with
the same real/imaginary weights.
Reference: Zongyi Li et al., Fourier Neural Operator for Parametric Partial Differential Equations, ICLR 2021.
Configuration for an FNO over d spatial axes with tensor-valued fields.
Size of each sampled grid axis.
- inputFeatures : Shape
Feature axes at each input grid point;
[]is a scalar field. - outputFeatures : Shape
Feature axes at each output grid point;
[]is a scalar field. - width : ℕ
Width of the latent channel representation.
- layerCount : ℕ
Number of spectral residual blocks.
- activation : Activation.Kind
Activation applied after each spectral residual block.
- spectralPath : Runtime.Autograd.Model.F.SpectralPath
Per-axis FFT execution or the dense full-grid reference, with the same parameters.
Instances For
Build a multidimensional FNO model, independently of spatial rank, feature shape and batch shape.
The pointwise lift and projection flatten only the feature axes. Spectral blocks still transform the spatial axes separately. Empty feature shapes select scalar fields, preserving the default parameter layout; feature shapes containing a zero extent are rejected before initialization.
automatic uses separable transforms, with cuFFT on supported eager CUDA interpreters and dense
per-axis transforms otherwise. denseReference uses the full-grid DFT matrices. Both paths retain
the full-spectrum parameterization, frequency mask, activation, and checkpoint layout.