(stride, padding, dilation)
| 6 | |
| 7 | |
| 8 | def 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 |
no outgoing calls
no test coverage detected
searching dependent graphs…