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

Function test_while

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

Test while loop statement.

()

Source from the content-addressed store, hash-verified

738
739
740def test_while():
741 """Test while loop statement."""
742 while_loop = create_test_statements()["while"]
743 basic_check(
744 while_loop,
745 "\n".join(
746 [
747 "While",
748 "\tLT",
749 "\t\tVar",
750 "\t\tIntImm",
751 "\tEvaluate",
752 "\t\tAdd",
753 "\t\t\tVar",
754 "\t\t\tIntImm",
755 ]
756 ),
757 "\n".join(["Var", "IntImm", "LT", "Var", "IntImm", "Add", "Evaluate", "While"]),
758 )
759
760
761def test_buffer_store():

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…