Browse Source

fix

pull/6023/head
wangbluo 3 months ago
parent
commit
2ee6235cfa
  1. 2
      colossalai/shardformer/layer/_operation.py

2
colossalai/shardformer/layer/_operation.py

@ -775,7 +775,7 @@ class _ReduceForward(torch.autograd.Function):
def backward(ctx, grad_output):
if ctx.grad_scale is not None:
grad_output = grad_output * ctx.grad_scale
return grad_output, None, None
return grad_output, None, None, None
class _ReduceBackward(torch.autograd.Function):

Loading…
Cancel
Save