API reference

python:irx:irx.builtins.collections.tensor_byte_bounds

function tensor_byte_bounds

tensor_byte_bounds(layout: TensorLayout) -> tuple[int, int] | None

Source: packages/irx/src/irx/builtins/collections/tensor.py:227

Declared as: python:irx:irx.builtins.collections.tensor.tensor_byte_bounds

Return the minimum and maximum element-start byte offsets.

The result is relative to the underlying data pointer. None means the logical layout has zero extent and therefore addresses no elements.

Parameters

Returns

Type: tuple[int, int] | None

Search documentation

Type to search.