ArrayRequest
- class cubie.memory.array_requests.ArrayRequest(dtype, shape: tuple[int, ...] = (1, 1, 1), memory: str = 'device', chunk_axis_index: int | None = 2, unchunkable: bool = False, total_runs: int = 1)[source]
Bases:
objectSpecification for requesting array allocation.
- Parameters:
shape (tuple[int, ...]) – Tuple describing the requested array shape. Defaults to
(1, 1, 1).dtype – NumPy precision constructor used to produce the allocation. Defaults to
numpy.float64(). Integer status buffers usenumpy.int32().memory (str) – Memory placement option. Must be one of
"device","mapped","pinned", or"managed".unchunkable (bool) – Whether the memory manager is allowed to chunk the allocation.
total_runs (int) – Total number of runs for chunking calculations. Defaults to
1for arrays not intended for run-axis chunking (e.g., driver_coefficients). Memory manager extracts this value to determine chunk parameters. Always >= 1.
- dtype
NumPy precision constructor used to produce the allocation.
- memory
Memory placement option.
- Type:
- chunk_axis_index
Axis index along which chunking may occur.
- Type:
int | None
- unchunkable
Flag indicating that chunking should be disabled.
- Type:
- total_runs
Total number of runs for chunking calculations. Always >= 1.
- Type:
- dtype
- memory: str
- property size: int
Total size of the array in bytes.
- total_runs: int
- unchunkable: bool