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

Function case10_normalized7

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

Source from the content-addressed store, hash-verified

699 case9_normalized6()
700
701 def case10_normalized7():
702 # Normalized Tile Layout Test - 7 (tile = inner)
703 outer = TileLayout(S[(8, 8, 4) : (32, 4, 1)])
704 inner = TileLayout(S[(1, 2, 1) : (4, 3, 1)])
705 inner_tmp = TileLayout(S[(1, 2, 2) : (8, 4, 3)])
706 layout_tile = inner.tile(outer, (8, 8, 4), (1, 2, 1))
707
708 outer_res = inner.is_tile_inner(layout_tile, (8, 16, 4), (1, 2, 1))
709 assert outer_res is not None
710 assert_structural_equal(outer_res.canonicalize(), outer.canonicalize())
711
712 assert inner.is_tile_inner(layout_tile.canonicalize(), (8, 16, 4), (1, 2, 1))
713
714 assert outer.is_tile_inner(layout_tile, (8, 16, 4), (8, 8, 4)) is None
715 assert inner_tmp.is_tile_inner(layout_tile, (8, 16, 4), (1, 2, 2)) is None
716
717 case10_normalized7()
718

Callers 1

test_tile_layoutFunction · 0.85

Calls 5

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…