Structs§
- Copy
Geometry - A
copy_ndzone: the output’s extents, and the strides each side walks it by. - Layout
- One tensor’s layout as a kernel addresses it: an extent per axis and a stride per axis, a broadcast axis holding a stride of zero.
Enums§
Constants§
- MAX_
COPY_ RANK - Highest rank the backends’
copy_ndkernels address.
Functions§
- as_
q40_ tensor - as_
quant_ fact - check_
strides_ validity - compute_
broadcast_ strides - facts_
to_ device_ facts - get_
device_ fact - get_
device_ facts - get_
quant_ fact - merge_
axes_ to_ fit - Merges the adjacent axes every layout walks as one run, until the rank fits
max_rank, and answers the rank reached. - merge_
copy_ axes - Merges a copy’s adjacent axes with
merge_axes_to_fituntil it fitsMAX_COPY_RANK. The rank answered still exceeds it when the two layouts leave no pair to merge, which a caller must check before dispatching. - reshape_
to_ rank_ 2 - reshape_
to_ rank_ 3