We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
sycl::log1p
math_utils.hpp
1 parent 15e0def commit c53fb26Copy full SHA for c53fb26
dpctl/tensor/libtensor/include/utils/math_utils.hpp
@@ -126,10 +126,10 @@ template <typename T> T logaddexp(T x, T y)
126
// compiler segfault in CUDA build is fixed
127
const T tmp = x - y;
128
if (tmp > 0) {
129
- return x + std::log1p(sycl::exp(-tmp));
+ return x + sycl::log1p(sycl::exp(-tmp));
130
}
131
else if (tmp <= 0) {
132
- return y + std::log1p(sycl::exp(tmp));
+ return y + sycl::log1p(sycl::exp(tmp));
133
134
else {
135
return std::numeric_limits<T>::quiet_NaN();
0 commit comments