MCPcopy Create free account
hub / github.com/apache/tvm / test_simple_auto_add_dfvar

Function test_simple_auto_add_dfvar

tests/python/relax/test_binding_rewrite.py:90–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88
89
90def test_simple_auto_add_dfvar():
91 root_fn = Identity["main"]
92 dfb = root_fn.body.blocks[0]
93
94 rwt = DataflowBlockRewrite(dfb, root_fn)
95 rwt.add(root_fn.params[0], is_dfvar=True)
96
97 assert isinstance(rwt.mutated_dfb().bindings[-1].var, DataflowVar)
98
99 # immutatbility
100 assert_immutability(rwt, dfb, root_fn)
101
102
103def test_simple_remove_unused():

Callers

nothing calls this directly

Calls 4

addMethod · 0.95
mutated_dfbMethod · 0.95
assert_immutabilityFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…