mirror of https://github.com/hpcaitech/ColossalAI
fix
parent
f7acfa1bd5
commit
2ee6235cfa
|
@ -775,7 +775,7 @@ class _ReduceForward(torch.autograd.Function):
|
||||||
def backward(ctx, grad_output):
|
def backward(ctx, grad_output):
|
||||||
if ctx.grad_scale is not None:
|
if ctx.grad_scale is not None:
|
||||||
grad_output = grad_output * ctx.grad_scale
|
grad_output = grad_output * ctx.grad_scale
|
||||||
return grad_output, None, None
|
return grad_output, None, None, None
|
||||||
|
|
||||||
|
|
||||||
class _ReduceBackward(torch.autograd.Function):
|
class _ReduceBackward(torch.autograd.Function):
|
||||||
|
|
Loading…
Reference in New Issue