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

Function check

tinygrad/codegen/opt/__init__.py:19–20  ·  view source on GitHub ↗
(cond:bool, msg:str="")

Source from the content-addressed store, hash-verified

17
18class KernelOptError(Exception): pass
19def check(cond:bool, msg:str=""):
20 if not cond: raise KernelOptError(msg)

Callers 2

real_axisMethod · 0.90
apply_optMethod · 0.90

Calls 1

KernelOptErrorClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…