fouriax.PhaseMask#
- class PhaseMask(phase_map_rad)#
Bases:
OpticalLayerSpatial-domain phase-only modulation layer.
- Parameters:
phase_map_rad (Array | float)
- __init__(phase_map_rad)#
- Parameters:
phase_map_rad (Array | float)
- Return type:
None
Methods
__init__(phase_map_rad)forward(field)Apply this layer's optical transformation to
field.Return trainable or configurable layer parameters.
validate_for(field)Check that field is compatible with this layer.
Attributes
- phase_map_rad: Array | float#
- forward(field)#
Apply this layer’s optical transformation to
field.
- parameters()#
Return trainable or configurable layer parameters.
Returns an empty dict by default. Subclasses override this to expose arrays that should be updated during optimisation.
- Return type:
dict[str, Array]