MCPcopy Create free account
hub / github.com/tile-ai/tilelang / ref_program

Function ref_program

testing/python/amd/test_tilelang_test_amd.py:87–94  ·  view source on GitHub ↗
(A, B)

Source from the content-addressed store, hash-verified

85 profiler = kernel.get_profiler()
86
87 def ref_program(A, B):
88 import torch
89
90 if trans_A:
91 A = A.T
92 if trans_B:
93 B = B.T
94 return (A @ B).to(torch.__getattribute__(out_dtype))
95
96 profiler.assert_allclose(ref_program, atol=1e-2, rtol=1e-2)
97

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…