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

Function case_swizzle_slice

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

Source from the content-addressed store, hash-verified

1616 case4()
1617
1618 def case_swizzle_slice():
1619 # SwizzleLayout slice - delegates to ComposeLayout
1620 swizzle = SwizzleLayout(per_element=3, swizzle_len=3, atom_len=3)
1621 shape = [512]
1622 region = [(64, 128)]
1623 sliced = swizzle.slice(shape, region)
1624 assert sliced is not None
1625 verify_slice(swizzle, shape, region, sliced)
1626
1627 case_swizzle_slice()
1628

Callers 1

test_sliceFunction · 0.85

Calls 3

SwizzleLayoutClass · 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…