MCPcopy
hub / github.com/tinygrad/tinygrad / nested_function

Method nested_function

test/null/test_viz.py:162–163  ·  view source on GitHub ↗
(u:UOp)

Source from the content-addressed store, hash-verified

160 with save_viz() as viz:
161 @profile_matches
162 def nested_function(u:UOp):
163 for i in range(2): graph_rewrite(u, PatternMatcher([]), name=f"step {i+1}")
164
165 @track_rewrites()
166 def main_rewrite(u:UOp):

Callers

nothing calls this directly

Calls 2

graph_rewriteFunction · 0.90
PatternMatcherClass · 0.90

Tested by

no test coverage detected