MCPcopy Index your code
hub / github.com/tinygrad/tinygrad / _store

Function _store

tinygrad/runtime/ops_python.py:24–26  ·  view source on GitHub ↗
(m, i, v, dtype: DType)

Source from the content-addressed store, hash-verified

22 return [_load(m, x+j if x is not None else None, dtype) for m,x in inp[0]]
23
24def _store(m, i, v, dtype: DType):
25 if i < 0 or i >= len(m): raise IndexError(f"store out of bounds, size is {len(m)}, access is {i}, value is {v}")
26 m[i] = to_storage_scalar(v, dtype)
27
28# here are the models for the WMMA instruction on the different hardware
29def generic_wmma_helper(inp, warp_size, WARP_THREADS, K, NUM_A, NUM_B, NUM_C, a_elem, b_elem, c_map):

Callers 1

__call__Method · 0.85

Calls 1

to_storage_scalarFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…