class
AirPadOptions
PythonOptions for the PAD operator.
AirPadOptions()Options for the PAD operator.
attribute
constant_value
Pythonconstant_value: int | float = Field(0, description='Value to use for padding')Value to use for padding (default 0).
LiteRT’s PADV2 parser forwards the fill scalar with its native
numeric type, so fractional float constants (e.g. 0.5 for an
FP32/FP16 pad) must be preserved rather than coerced to int.
attribute
pre_paddings
Pythonpre_paddings: list[int] | None = Field(None, description='List of padding sizes before each dimension')List of padding sizes before each dimension (default None).
attribute
post_paddings
Pythonpost_paddings: list[int] | None = Field(None, description='List of padding sizes after each dimension')List of padding sizes after each dimension (default None).