Skip to content
heliaAOT
HELIA HUB

AirStridedSliceOptions

Machine-readable model

class

Options for STRIDEDSLICE operator.

helia_aot/air/options.py:778

AirStridedSliceOptions()

Options for STRIDED_SLICE operator.

attribute

begin

Python

helia_aot/air/options.py:794

begin: tuple[int, int, int, int] = Field(..., description='Begin indices for each dimension')

Begin indices for each dimension.

attribute

end

Python

helia_aot/air/options.py:795

end: tuple[int, int, int, int] = Field(..., description='End indices for each dimension')

End indices for each dimension.

attribute

stride

Python

helia_aot/air/options.py:796

stride: tuple[int, int, int, int] = Field(..., description='Stride values for each dimension')

Stride values for each dimension.

attribute

offset

Python

helia_aot/air/options.py:803

offset: bool = Field(False, description='If True, apply offset to the begin and end indices')

If True, apply offset to the begin and end indices (default False).

method

Compute (begin, end, stride) for each axis, padding dims and shape to padto dims.

helia_aot/air/options.py:805

get_slices(input_shape: tuple[int, ...], pad_to: int = 4) -> list[AirStrideSlice]

Compute (begin, end, stride) for each axis, padding dims and shape to pad_to dims.

Parameters of get_slices
NameTypeDefaultDescription
input_shapetuple[int, ...]RequiredThe shape of the input tensor.
pad_toint4The number of dimensions to pad the input shape to (default 4).
Returns of get_slices
TypeDescription
list[AirStrideSlice]A list of AirStrideSlice, each containing (begin, end, stride) for each axis.