MCPcopy
hub / github.com/tinygrad/tinygrad / custom_arange_kernel

Function custom_arange_kernel

test/backend/test_custom_kernel.py:8–10  ·  view source on GitHub ↗
(C:UOp)

Source from the content-addressed store, hash-verified

6# **** kernels ****
7
8def custom_arange_kernel(C:UOp) -> UOp:
9 i = UOp.range(C.shape[0], 0)
10 return C[i].store(i.cast(C.dtype.base)).end(i).sink(arg=KernelInfo(name=f"custom_arange_{C.shape[0]}"))
11
12def custom_eye_kernel(C:UOp) -> UOp:
13 i = UOp.range(C.shape[0], 0)

Callers

nothing calls this directly

Calls 6

KernelInfoClass · 0.90
rangeMethod · 0.45
sinkMethod · 0.45
endMethod · 0.45
storeMethod · 0.45
castMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…