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

Function test_prim_value_with_expr

tests/python/relax/test_expr.py:265–270  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

263
264
265def test_prim_value_with_expr():
266 n = tirx.Var("n", "int64")
267 pv = rx.PrimValue(n + 1)
268 tvm.ir.assert_structural_equal(pv.struct_info, rx.PrimStructInfo(value=n + 1))
269 _check_equal(pv, rx.PrimValue(n + 1))
270 _check_json_roundtrip(pv)
271
272
273def test_string_imm():

Callers

nothing calls this directly

Calls 2

_check_equalFunction · 0.70
_check_json_roundtripFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…