MCPcopy
hub / github.com/tinygrad/tinygrad / graph_class

Function graph_class

tinygrad/engine/jit.py:88–88  ·  view source on GitHub ↗
(dev)

Source from the content-addressed store, hash-verified

86 raise JitError(f"JIT return contains non-Tensor value of type {type(ret).__name__}")
87
88def graph_class(dev): return dev.graph.func if isinstance(dev.graph, functools.partial) else dev.graph
89
90class GraphRunner:
91 def __init__(self, linear:UOp, input_uops:tuple[UOp, ...]=()):

Callers 2

expectMethod · 0.90
graph_split_rewriteFunction · 0.85

Calls

no outgoing calls

Tested by 1

expectMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…