mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-08-02 00:01:52 +00:00
fix
This commit is contained in:
parent
f7acfa1bd5
commit
2ee6235cfa
@ -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…
Reference in New Issue
Block a user