Skip to content

Commit 5450354

Browse files
wangyuwen1999maxiaolong001
authored andcommitted
correct copysign backward (PaddlePaddle#74322)
* correct copysign backward * correct codestyle
1 parent bf55890 commit 5450354

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/phi/kernels/funcs/elementwise_functor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1378,7 +1378,7 @@ struct CopySignGradXYFunctor {
13781378
if (x == static_cast<InT>(0))
13791379
outs[0] = static_cast<OutT>(0);
13801380
else
1381-
outs[0] = static_cast<OutT>(dout * (funcs::copysign_func(x, y)) / x);
1381+
outs[0] = static_cast<OutT>(dout * (funcs::copysign_func(x, y) / x));
13821382
// dy = 0
13831383
outs[1] = static_cast<OutT>(0);
13841384
return outs;

0 commit comments

Comments
 (0)