MCPcopy Create free account
hub / github.com/KnowingNothing/MatmulTutorial / print_matrix

Function print_matrix

cutlass.py/mma.py:171–178  ·  view source on GitHub ↗
(mtx, rows, cols, func=lambda x: x, prompt="")

Source from the content-addressed store, hash-verified

169 frag = wgmma_op.get_accumulator_matrix()
170
171 def print_matrix(mtx, rows, cols, func=lambda x: x, prompt=""):
172 print(prompt)
173 for x in range(rows):
174 for y in range(cols):
175 item = mtx[x][y]
176 item = func(item)
177 print(item, end=" ")
178 print()
179
180 print_matrix(frag, 64, 128, func=lambda x: f"T{x[2]}({x[0]},{x[1]})", prompt="Fragment WgMMA M64N128K16:")

Callers 1

mma.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected