Skip to content

Commit ac20262

Browse files
committed
address reviewer's comments
1 parent e6af2bc commit ac20262

File tree

1 file changed

+1
-1
lines changed
  • dpctl/tensor/libtensor/include/kernels/elementwise_functions

1 file changed

+1
-1
lines changed

dpctl/tensor/libtensor/include/kernels/elementwise_functions/exp.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ template <typename argT, typename resT> struct ExpFunctor
8989
}
9090
}
9191
else {
92-
if (x > realT(0)) { /* x is +inf */
92+
if (!std::signbit(x)) { /* x is +inf */
9393
if (y == realT(0)) {
9494
return resT{x, y};
9595
}

0 commit comments

Comments
 (0)