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

Function _check_equal

tests/python/relax/test_expr.py:29–36  ·  view source on GitHub ↗
(x, y, map_free_vars=False)

Source from the content-addressed store, hash-verified

27
28
29def _check_equal(x, y, map_free_vars=False):
30 tvm.ir.assert_structural_equal(x, y, map_free_vars)
31 tvm.ir.assert_structural_equal(y, x, map_free_vars)
32
33 xhash = tvm_ffi.structural_hash(x, map_free_vars)
34 yhash = tvm_ffi.structural_hash(y, map_free_vars)
35
36 assert xhash == yhash
37
38
39def _check_json_roundtrip(x):

Callers 6

_check_json_roundtripFunction · 0.70
test_prim_valueFunction · 0.70
test_prim_value_with_varFunction · 0.70
test_string_immFunction · 0.70
test_datatype_immFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…