Skip to content
heliaAOT
API Reference
HELIA HUB

AirSplitOptions

Machine-readable model

class

Options for the SPLIT operator.

helia_aot/air/options.py:679

AirSplitOptions()

Options for the SPLIT operator.

Provisional: importable, but outside the compatibility promise; a minor release can change or remove it.

attribute

axis

Python

helia_aot/air/options.py:690

axis: int = Field(0, description='Axis along which to split the input tensor')

Axis along which to split the input tensor (default 0).

attribute

helia_aot/air/options.py:691

split_lengths: list[int] = Field(default_factory=list, description='Length of each split; -1 marks a length inferred from the axis size')

Length of each split (default empty list). A single -1 takes what the other lengths leave (SPLIT_V); all -1 splits the axis evenly (SPLIT). See resolve_lengths.

method

Return the concrete split lengths for a split axis of axissize.

helia_aot/air/options.py:700

resolve_lengths(axis_size: int) -> list[int]

Return the concrete split lengths for a split axis of axis_size.

Errors raised by resolve_lengths
TypeDescription
ValueErrorIf a length is below -1, -1 appears more than once without filling every entry, or the lengths cannot tile ``axis_size``.