MCPcopy
hub / github.com/tinygrad/tinygrad / bidir_append

Function bidir_append

test/null/test_graph_rewrite.py:331–331  ·  view source on GitHub ↗
(ctx, x, b)

Source from the content-addressed store, hash-verified

329 graph_rewrite(a, pm, bottom_up=True)
330
331def bidir_append(ctx, x, b): ctx.append((x.arg if x.op is Ops.CONST else "+", b))
332class TestBidirectional(unittest.TestCase):
333 def test_simple(self):
334 a = UOp.const(dtypes.int, 1)

Callers 1

test_simpleMethod · 0.85

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…