fhelium.backend.triton._layout
Shape constraints shared by Triton region selection and concrete binding.
Shape
data View source
python
Shape = tuple[int, ...] | None1
result_layout
function View source
python
def result_layout(operation_type: type[Operation], shapes: Sequence[Shape], component_axes: Sequence[bool], *, component: int | None=None) -> tuple[Shape, bool]: ...1
Check known extents and infer an output layout; unknown shapes stay unknown.
check_ntt_extent
function View source
python
def check_ntt_extent(n: int | None) -> None: ...1
check_ntt_layouts
function View source
python
def check_ntt_layouts(layouts: Sequence[tuple[Shape, bool]]) -> None: ...1
Require common known transform/output batches and a supported polynomial extent.
compact_policy
function View source
python
def compact_policy(policy: object) -> bool: ...1
Recognize compact-radix-2 policy objects or declared Backend names.