Skip to content

Commit 25a2938

Browse files
committed
Use is_complex_v in nan_to_num kernel
1 parent 6a789dc commit 25a2938

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpnp/backend/kernels/elementwise_functions/nan_to_num.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ struct NanToNumFunctor
6767
const dpctl::tensor::ssize_t &inp_offset = offsets_.get_first_offset();
6868
const dpctl::tensor::ssize_t &out_offset = offsets_.get_second_offset();
6969

70-
using dpctl::tensor::type_utils::is_complex;
71-
if constexpr (is_complex<T>::value) {
70+
using dpctl::tensor::type_utils::is_complex_v;
71+
if constexpr (is_complex_v<T>) {
7272
using realT = typename T::value_type;
7373
static_assert(std::is_same_v<realT, scT>);
7474
T z = inp_[inp_offset];

0 commit comments

Comments
 (0)