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 6a789dc commit 25a2938Copy full SHA for 25a2938
dpnp/backend/kernels/elementwise_functions/nan_to_num.hpp
@@ -67,8 +67,8 @@ struct NanToNumFunctor
67
const dpctl::tensor::ssize_t &inp_offset = offsets_.get_first_offset();
68
const dpctl::tensor::ssize_t &out_offset = offsets_.get_second_offset();
69
70
- using dpctl::tensor::type_utils::is_complex;
71
- if constexpr (is_complex<T>::value) {
+ using dpctl::tensor::type_utils::is_complex_v;
+ if constexpr (is_complex_v<T>) {
72
using realT = typename T::value_type;
73
static_assert(std::is_same_v<realT, scT>);
74
T z = inp_[inp_offset];
0 commit comments