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

Function test3

tests/python/s_tir/transform/test_s_tir_transform_profiling_instr.py:306–314  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

304# loops are always excluded from instrumentation unless overwritten using
305# 'lwp_min_height' (ex: test5)
306def test3():
307 test3_config = default_lwp_test_config.copy()
308 test3_config.update({"s_tir.lwp_max_depth": 3, "s_tir.instr_siblings": False})
309 with tvm.transform.PassContext(config=test3_config):
310 mod = tvm.IRModule.from_expr(input1.with_attr("global_symbol", "main"))
311 mod = tvm.s_tir.transform.InstrumentProfileIntrinsics()(mod)
312 tvm.ir.assert_structural_equal(
313 mod["main"], test3_expected_output.with_attr("global_symbol", "main")
314 )
315
316
317# test4: Use 'lwp_min_height' to exclude inner loops upto a certain height from

Callers

nothing calls this directly

Calls 4

from_exprMethod · 0.80
copyMethod · 0.45
updateMethod · 0.45
with_attrMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…