make dy contiguous

This commit is contained in:
Datta Nimmaturi 2026-01-14 11:10:59 +00:00
commit 894828cfb8

View file

@ -746,6 +746,7 @@ class GroupedGemm(torch.autograd.Function):
@staticmethod
def backward(ctx, dY):
dY = dY.contiguous()
X, W, m_sizes, gather_indices = ctx.saved_tensors
topk = ctx.topk
permute_x = ctx.permute_x