()
| 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 |
no test coverage detected
searching dependent graphs…