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.
1 parent 78640ba commit cd3c5d5Copy full SHA for cd3c5d5
dpnp/backend/kernels/elementwise_functions/erf.hpp
@@ -47,6 +47,7 @@ struct ErfFunctor
47
{
48
if constexpr (std::is_same_v<argT, sycl::half> &&
49
std::is_same_v<Tp, float>) {
50
+ // cast sycl::half to float for accuracy reasons
51
return sycl::erf(float(x));
52
}
53
else {
0 commit comments