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

Function ref_program

examples/convolution/example_convolution.py:8–16  ·  view source on GitHub ↗
(stride, padding, dilation)

Source from the content-addressed store, hash-verified

6
7
8def ref_program(stride, padding, dilation):
9 def main(A, B):
10 A = A.permute(0, 3, 1, 2) # N, H, W, C -> N, C, H, W
11 B = B.permute(3, 2, 0, 1) # H, W, C, F -> F, C, H, W
12 C = torch.conv2d(A, B, stride=stride, padding=padding, dilation=dilation)
13 C = C.permute(0, 2, 3, 1) # N, C, H, W -> N, H, W, C
14 return C
15
16 return main
17
18
19@tilelang.jit

Callers 1

mainFunction · 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…