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

Function ref_program

testing/python/language/test_tilelang_language_view.py:38–42  ·  view source on GitHub ↗
(A)

Source from the content-addressed store, hash-verified

36 profiler = jit_kernel.get_profiler()
37
38 def ref_program(A):
39 if new_dtype:
40 torch_dtype = T.dtype(new_dtype).as_torch()
41 return A.view(N // M, M).view(dtype=torch_dtype)
42 return A.view(N // M, M)
43
44 profiler.assert_allclose(ref_program, atol=1e-2, rtol=1e-2)
45

Callers

nothing calls this directly

Calls 1

as_torchMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…