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

Function custom_set0_kernel

test/unit/test_schedule_cache.py:7–8  ·  view source on GitHub ↗
(A:UOp, num:int)

Source from the content-addressed store, hash-verified

5from tinygrad.schedule import schedule_cache
6
7def custom_set0_kernel(A:UOp, num:int) -> UOp:
8 return A[0].set(num).sink(arg=KernelInfo(f"custom_set0_{num}"))
9
10class TestScheduleCache(unittest.TestCase):
11 def test_bound_variable_reuses_cache(self):

Callers

nothing calls this directly

Calls 3

KernelInfoClass · 0.90
sinkMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…