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

Function test_trainium_layout_0

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

Source from the content-addressed store, hash-verified

1212
1213 ################ Trainium Layout
1214 def test_trainium_layout_0():
1215 layout = TileLayout(S[(8, 8) : (8 @ F, 1 @ P)])
1216 for i, j in itertools.product(range(8), range(8)):
1217 coord = layout.apply(i, j, shape=(8, 8))
1218 assert coord["P"] == j
1219 assert coord["F"] == i * 8
1220
1221 test_trainium_layout_0()
1222

Callers 1

test_applyFunction · 0.85

Calls 3

TileLayoutClass · 0.90
productMethod · 0.80
applyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…