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

Function test_block_realize

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

Test block realize statement.

()

Source from the content-addressed store, hash-verified

809
810
811def test_block_realize():
812 """Test block realize statement."""
813 block_realize = create_test_statements()["block_realize"]
814 basic_check(
815 block_realize,
816 "\n".join(
817 [
818 "BlockRealize",
819 "\tIntImm",
820 "\tIntImm",
821 "\tBlock",
822 "\t\tEvaluate",
823 "\t\t\tAdd",
824 "\t\t\t\tVar",
825 "\t\t\t\tIntImm",
826 ]
827 ),
828 "\n".join(
829 [
830 "IntImm",
831 "IntImm",
832 "IntImm",
833 "IntImm",
834 "Var",
835 "IntImm",
836 "Add",
837 "Evaluate",
838 "Block",
839 "BlockRealize",
840 ]
841 ),
842 )
843
844
845def test_if_then_else():

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…