MCPcopy Create free account
hub / github.com/apache/tvm / alloc_layout

Function alloc_layout

tests/python/tirx/test_layout.py:1424–1429  ·  view source on GitHub ↗
(shape, dtype, swizzle_mode="auto")

Source from the content-addressed store, hash-verified

1422
1423def test_pool_allocator_alloc_mma():
1424 def alloc_layout(shape, dtype, swizzle_mode="auto"):
1425 with IRBuilder():
1426 with Tx_builder.prim_func():
1427 pool = T.SMEMPool(Var("smem_ptr", PointerType(PrimType("uint8"))))
1428 buf = pool.alloc_mma(shape, dtype, swizzle_mode=swizzle_mode)
1429 return buf.layout
1430
1431 cases = [
1432 ("uint8", (3, 64, 256)),

Callers 1

Calls 5

alloc_mmaMethod · 0.95
IRBuilderClass · 0.90
VarClass · 0.90
PointerTypeClass · 0.90
PrimTypeClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…