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

Function test_seq_stmt

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

Test sequence statement.

()

Source from the content-addressed store, hash-verified

769
770
771def test_seq_stmt():
772 """Test sequence statement."""
773 seq_stmt = create_test_statements()["seq_stmt"]
774 basic_check(
775 seq_stmt,
776 "\n".join(
777 [
778 "SeqStmt",
779 "\tEvaluate",
780 "\t\tAdd",
781 "\t\t\tVar",
782 "\t\t\tIntImm",
783 "\tFor",
784 "\t\tIntImm",
785 "\t\tIntImm",
786 "\t\tEvaluate",
787 "\t\t\tAdd",
788 "\t\t\t\tVar",
789 "\t\t\t\tIntImm",
790 ]
791 ),
792 "\n".join(
793 [
794 "Var",
795 "IntImm",
796 "Add",
797 "Evaluate",
798 "IntImm",
799 "IntImm",
800 "Var",
801 "IntImm",
802 "Add",
803 "Evaluate",
804 "For",
805 "SeqStmt",
806 ]
807 ),
808 )
809
810
811def test_block_realize():

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…