MCPcopy Create free account
hub / github.com/tinygrad/tinygrad / KernelOptError

Class KernelOptError

tinygrad/codegen/opt/__init__.py:18–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16 def __repr__(self): return f"Opt(op={self.op}, axis={self.axis}, arg={self.arg})"
17
18class KernelOptError(Exception): pass
19def check(cond:bool, msg:str=""):
20 if not cond: raise KernelOptError(msg)

Callers 4

shift_toMethod · 0.90
apply_optMethod · 0.90
_apply_tc_optMethod · 0.90
checkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…