MCPcopy
hub / github.com/tinygrad/tinygrad / ExecContext

Class ExecContext

tinygrad/engine/realize.py:128–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126
127@dataclass
128class ExecContext:
129 var_vals: dict[str, int] = field(default_factory=dict)
130 input_uops: tuple[UOp, ...] = ()
131 update_stats: bool = True
132 jit: bool = False
133 wait: bool = False
134 timeout: int|None = None
135 cache: bool = True
136
137def _resolve(b:UOp, inputs:tuple[UOp, ...]) -> UOp:
138 if b.op in (Ops.BUFFER_VIEW, Ops.MSELECT) and b.src[0].op is Ops.PARAM: return b.replace(src=(inputs[b.src[0].arg], *b.src[1:]))

Callers 2

run_linearFunction · 0.85
time_callFunction · 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…