MCPcopy
hub / github.com/tinygrad/tinygrad / reset

Method reset

tinygrad/engine/jit.py:246–249  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

244 def add_linear(self, linear:UOp, var_vals:dict[str, int]): self._linears.append(linear)
245
246 def reset(self):
247 assert self.fxn is not None, "can't reset without function"
248 self.cnt = 0
249 self.captured = None
250
251 def __reduce__(self):
252 assert self.captured is not None, "can't pickle an uncaptured JIT"

Callers 15

mainFunction · 0.45
test_countersMethod · 0.45
_test_matmul_halfMethod · 0.45
run_layersMethod · 0.45
helper_testFunction · 0.45
_get_flopsMethod · 0.45
test_arange_2_reduceMethod · 0.45
test_manual_indexMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_countersMethod · 0.36
_test_matmul_halfMethod · 0.36
run_layersMethod · 0.36
helper_testFunction · 0.36
_get_flopsMethod · 0.36
test_arange_2_reduceMethod · 0.36
test_manual_indexMethod · 0.36
test_index_variableMethod · 0.36