API reference

python:irx:irx.builtins.collections.tensor.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:208

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

The minimum and maximum element-start byte offsets.; Type: tuple[int, int] | None

Search documentation

Type to search.