Skip to content

Commit

Permalink
bug fix in im2col encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
masahi committed Dec 11, 2021
1 parent db78d48 commit 65fbc0a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions python/tvm/contrib/cutlass/gen_conv2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,16 @@ def profile(
If profile_all is False, return immediately after the first applicable kernel is found.
If use_multiprocessing is True, compile all profiler executables in parallel.
"""
B, H, W, C = d_shape
K, R, S, _ = w_shape
B, H, W, IC = d_shape
OC, R, S, _ = w_shape
_, P, Q, _ = out_shape

M = B * H * W
K = R * S * C
N = B * P * Q
M = B * P * Q
N = OC
K = R * S * IC

gemm_profile_result = self.gemm_profiler.profile(
M, K, N, out_dtype, profile_all=profile_all, use_multiprocessing=use_multiprocessing
M, N, K, out_dtype, profile_all=profile_all, use_multiprocessing=use_multiprocessing
)

tile_description = gemm_profile_result["tile_description"]
Expand Down

0 comments on commit 65fbc0a

Please sign in to comment.