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

Function test_prim_value_with_var

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

Source from the content-addressed store, hash-verified

254
255
256def test_prim_value_with_var():
257 n = tirx.Var("n", "int64")
258 pv = rx.PrimValue(n)
259 assert pv.value.same_as(n)
260 tvm.ir.assert_structural_equal(pv.struct_info, rx.PrimStructInfo(value=n))
261 _check_equal(pv, rx.PrimValue(n))
262 _check_json_roundtrip(pv)
263
264
265def test_prim_value_with_expr():

Callers

nothing calls this directly

Calls 3

_check_equalFunction · 0.70
_check_json_roundtripFunction · 0.70
same_asMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…