rename BUFFER_VIEW to SLICE (#16391)

* rename BUFFER_VIEW to SLICE

* fix comments
This commit is contained in:
George Hotz 2026-05-26 18:15:00 -07:00 committed by GitHub
commit 156a4438d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 63 additions and 70 deletions

Binary file not shown.

View file

@ -79,7 +79,7 @@ A \op{Buffer}'s \textbf{addrspace} is \texttt{GLOBAL}, \texttt{LOCAL}, or \textt
\op{Index} & $(T, i_0, i_1, \ldots)$ & --- & Index from left. $()$-shaped $i$ removes dim; $(k,)$-shaped makes it $k$. \\
\op{Stack} & $(T_0, T_1, \ldots)$ & --- & Join along a newly created leading axis. All shapes must match. \\
\op{Replicated} & $(T,)$ & axes & Mark $T$ as replicated along axes. Collapse axes to $1$. \\
\op{BufferView} & $(T, \mathrm{offset})$ & size, dtype & Zero-copy \textit{size} elems of dtype; offset is \texttt{weakint} elems of $T$ dtype. \\
\op{Slice} & $(T, \mathrm{offset})$ & size, dtype & Zero-copy \textit{size} elems of dtype; offset is elems of $T$ dtype. \\
\bottomrule
\end{tabular}