tidy3d.plugins.autograd.invdes.FilterAndProject#
- class FilterAndProject[source]#
Bases:
Tidy3dBaseModelA class that combines filtering and projection operations.
- Parameters:
attrs (dict = {}) β Dictionary storing arbitrary metadata for a Tidy3D object. This dictionary can be freely used by the user for storing data without affecting the operation of Tidy3D as it is not used internally. Note that, unlike regular Tidy3D fields,
attrsare mutable. For example, the following is allowed for setting anattrobj.attrs['foo'] = bar. Also note that Tidy3D will raise aTypeErrorifattrscontain objects that can not be serialized. One can check ifattrsare serializable by callingobj.json().radius (Union[float, tuple[float, ...]]) β The radius of the kernel.
size_px (Union[int, tuple[int, ...]] = None) β The size of the kernel in pixels.
beta (NonNegativeFloat = 1.0) β The beta parameter for the tanh projection.
eta (NonNegativeFloat = 0.5) β The eta parameter for the tanh projection.
filter_type (Literal['circular', 'conic', 'gaussian'] = conic) β The type of filter to create.
padding (Literal['constant', 'edge', 'reflect', 'symmetric', 'wrap'] = reflect) β The padding mode to use.
Attributes
Methods
Inherited Common Usage
- radius#
- dl#
- size_px#
- beta#
- eta#
- filter_type#
- padding#