Expand description
Spatial [C, C] operators on the device, stored dense or as sparse rows depending on how many
weights are nonzero.
Structs§
- Sparse
Rows - Rows of a square matrix keeping only nonzero weights, padded to the widest row (ELLPACK).
Enums§
- Device
Spatial Matrix - A
[C, C]spatial operator uploaded once, dense or as sparse rows (chosen bySPARSE_MAX_ROW_FILLfrom the matrix itself).
Constants§
- SPARSE_
MAX_ ROW_ FILL - A matrix is stored as sparse rows when its widest row holds at most this fraction of the columns; denser matrices run the dense kernel (fewer index reads).
Functions§
- execute_
sparse_ rows_ multiply output = W · inputfor a sparse-rowsW(values/indicesuploaded fromSparseRows).- execute_
spatial_ matrix_ multiply output = W · inputfor a dense row-majorW([channels, channels]) on a[channels, samples]buffer ofF: one matrix product (crate::linalg::matmul).