pull/6023/head
wangbluo 2024-08-20 06:48:16 +00:00
parent f7acfa1bd5
commit 2ee6235cfa
1 changed files with 1 additions and 1 deletions

View File

@ -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):