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

Function ref_program

testing/python/language/test_tilelang_language_clamp.py:41–45  ·  view source on GitHub ↗
(A)

Source from the content-addressed store, hash-verified

39 profiler = kernel.get_profiler()
40
41 def ref_program(A):
42 import torch
43
44 output = torch.clamp(A, min, max)
45 return output
46
47 profiler.assert_allclose(ref_program, atol=1e-2, rtol=1e-2)
48

Callers 1

run_clamp_value_rangeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…