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:208
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
- layout — Layout.; Type: TensorLayout
Returns
The minimum and maximum element-start byte offsets.; Type: tuple[int, int] | None