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

Function test_for

tests/python/tirx/transform/test_stmt_functor.py:728–737  ·  view source on GitHub ↗

Test for loop statement.

()

Source from the content-addressed store, hash-verified

726
727
728def test_for():
729 """Test for loop statement."""
730 for_loop = create_test_statements()["for"]
731 basic_check(
732 for_loop,
733 "\n".join(
734 ["For", "\tIntImm", "\tIntImm", "\tEvaluate", "\t\tAdd", "\t\t\tVar", "\t\t\tIntImm"]
735 ),
736 "\n".join(["IntImm", "IntImm", "Var", "IntImm", "Add", "Evaluate", "For"]),
737 )
738
739
740def test_while():

Callers

nothing calls this directly

Calls 3

create_test_statementsFunction · 0.70
basic_checkFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…