MCPcopy Index your code
hub / github.com/apache/tvm / case9_normalized6

Function case9_normalized6

tests/python/tirx/test_layout.py:684–697  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

682 case8_normalized5()
683
684 def case9_normalized6():
685 # Normalized Tile Layout Test - 6 (tile < inner)
686 outer = TileLayout(S[(8, 4, 1) : (4, 1, 4)])
687 inner = TileLayout(S[(2, 1, 1) : (4, 3, 1)])
688 TileLayout(S[(8, 2, 2) : (4, 2, 2)])
689 layout_tile = inner.tile(outer, (8, 4), (2, 1))
690
691 outer_res = inner.is_tile_inner(layout_tile, (16, 4), (2, 1))
692 assert outer_res is not None
693 assert_structural_equal(outer_res.canonicalize(), outer.canonicalize())
694
695 inner_res = outer.is_tile_outer(layout_tile, (16, 4), (8, 4))
696 assert inner_res is not None
697 assert_structural_equal(inner_res.canonicalize(), inner.canonicalize())
698
699 case9_normalized6()
700

Callers 1

test_tile_layoutFunction · 0.85

Calls 6

TileLayoutClass · 0.90
assert_structural_equalFunction · 0.90
is_tile_innerMethod · 0.80
canonicalizeMethod · 0.80
is_tile_outerMethod · 0.80
tileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…