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

Function test_prim_value

tests/python/relax/test_ast_printer.py:652–662  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

650
651
652def test_prim_value():
653 prim_value = rx.PrimValue(tirx.IntImm("int64", 1))
654 prim_str = strip_whitespace(dump_ast(prim_value))
655 assert prim_str == strip_whitespace(
656 """
657 PrimValue(
658 value=PrimExpr(value=`T.int64(1)`),
659 struct_info=PrimStructInfo(dtype=int64)
660 )
661 """
662 )
663
664
665def test_string_imm():

Callers

nothing calls this directly

Calls 2

dump_astFunction · 0.90
strip_whitespaceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…