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

Function case_compose_slice_2d

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

Source from the content-addressed store, hash-verified

1641 case_compose_slice()
1642
1643 def case_compose_slice_2d():
1644 # ComposeLayout slice with 2D shape
1645 compose = ComposeLayout(
1646 SwizzleLayout(per_element=3, swizzle_len=3, atom_len=3),
1647 TileLayout(S[(8, 64) : (64, 1)]),
1648 )
1649 shape = [8, 64]
1650 region = [(2, 4), (0, 64)]
1651 sliced = compose.slice(shape, region)
1652 assert sliced is not None
1653 verify_slice(compose, shape, region, sliced)
1654
1655 case_compose_slice_2d()
1656

Callers 1

test_sliceFunction · 0.85

Calls 5

ComposeLayoutClass · 0.90
SwizzleLayoutClass · 0.90
TileLayoutClass · 0.90
verify_sliceFunction · 0.70
sliceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…