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

Function _check

tests/python/relax/test_tvmscript_parser_op_sort.py:26–34  ·  view source on GitHub ↗
(
    parsed: relax.Function | IRModule,
    expect: relax.Function | IRModule | None,
)

Source from the content-addressed store, hash-verified

24
25
26def _check(
27 parsed: relax.Function | IRModule,
28 expect: relax.Function | IRModule | None,
29):
30 test = parsed.script(show_meta=True)
31 roundtrip_mod = tvm.script.from_source(test)
32 tvm.ir.assert_structural_equal(parsed, roundtrip_mod)
33 if expect:
34 tvm.ir.assert_structural_equal(parsed, expect)
35
36
37def test_sort():

Callers 1

test_sortFunction · 0.70

Calls 1

scriptMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…