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

Function test_prim_value

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

Source from the content-addressed store, hash-verified

247
248
249def test_prim_value():
250 pv = rx.PrimValue(tirx.IntImm("int64", 1))
251 assert pv.value.value == 1
252 _check_equal(pv, rx.PrimValue(tirx.IntImm("int64", 1)))
253 _check_json_roundtrip(pv)
254
255
256def test_prim_value_with_var():

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…