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

Function test_simple_auto_add_var

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

Source from the content-addressed store, hash-verified

76
77
78def test_simple_auto_add_var():
79 root_fn = Identity["main"]
80 dfb = root_fn.body.blocks[0]
81
82 rwt = DataflowBlockRewrite(dfb, root_fn)
83 rwt.add(root_fn.params[0], is_dfvar=False)
84
85 assert isinstance(rwt.mutated_dfb().bindings[-1].var, Var)
86
87 assert_immutability(rwt, dfb, root_fn)
88
89
90def test_simple_auto_add_dfvar():

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…