MCPcopy
hub / github.com/tinygrad/tinygrad / KernelCountException

Class KernelCountException

test/null/test_schedule.py:9–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7from tinygrad.codegen import to_program
8
9class KernelCountException(Exception): pass
10def check_schedule(t:Tensor|list[Tensor]|UOp, allowed:int, to_prerealize:list[Tensor]|None=None, filter_sink=True):
11 if to_prerealize:
12 with Context(DEBUG=0, TRACK_MATCH_STATS=0): Tensor.realize(*to_prerealize)

Callers 1

check_scheduleFunction · 0.70

Calls

no outgoing calls

Tested by 1

check_scheduleFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…