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

Function test_ret_const

tests/python/tirx-base/test_tir_base.py:95–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93
94
95def test_ret_const():
96 a = tirx.const(0)
97 b = tirx.ret(a)
98 b = tirx.Evaluate(b)
99 func = tirx.PrimFunc([], b)
100 func = build_tir_func(func)
101 out = func()
102 assert out == 0
103
104
105def test_control_flow_jump():

Callers 1

test_tir_base.pyFile · 0.85

Calls 2

build_tir_funcFunction · 0.85
funcFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…