MCPcopy Index your code
hub / github.com/apache/tvm / assert_immutability

Function assert_immutability

tests/python/relax/test_binding_rewrite.py:39–43  ·  view source on GitHub ↗
(rwt, original_dfb, original_root_fn)

Source from the content-addressed store, hash-verified

37
38
39def assert_immutability(rwt, original_dfb, original_root_fn):
40 assert rwt.mutated_dfb() != original_dfb
41 assert rwt.mutated_root_fn() != original_root_fn
42 assert rwt.mutated_root_fn().body.blocks[0] != original_dfb
43 assert rwt.mutated_root_fn().body.blocks[0] == rwt.mutated_dfb()
44
45
46def test_null_construct():

Callers 5

test_simple_addFunction · 0.85
test_simple_auto_add_varFunction · 0.85

Calls 2

mutated_dfbMethod · 0.80
mutated_root_fnMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…