Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Mayank Mishra <[email protected]>
  • Loading branch information
mayank31398 committed Jan 21, 2025
1 parent 8c23970 commit 6390a64
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cute_kernels/kernels/gemm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,9 @@ def gemm_cute(
M, K = get_num_elements_and_hidden_size(a)

assert b.dim() == 2, "only 2 dimensional b tensor is supported"
assert b.size(1 if is_b_transposed else 0) == K

if is_b_transposed:
N = b.size(0)
assert b.size(1) == K
else:
N = b.size(1)
assert b.size(0) == K
N = b.size(0 if is_b_transposed else 1)

output = torch.empty(M, N, dtype=a.dtype, device=a.device)

Expand Down

0 comments on commit 6390a64

Please sign in to comment.