Skip to content

Commit 6a789dc

Browse files
committed
Add additional const qualifiers in nan_to_num impl functions
1 parent f44ccd9 commit 6a789dc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dpnp/backend/kernels/elementwise_functions/nan_to_num.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,16 @@ class NanToNumKernel;
9595

9696
template <typename T, typename scT>
9797
sycl::event nan_to_num_impl(sycl::queue &q,
98-
size_t nelems,
99-
int nd,
98+
const size_t nelems,
99+
const int nd,
100100
const dpctl::tensor::ssize_t *shape_strides,
101101
const scT nan,
102102
const scT posinf,
103103
const scT neginf,
104104
const char *in_cp,
105-
dpctl::tensor::ssize_t in_offset,
105+
const dpctl::tensor::ssize_t in_offset,
106106
char *out_cp,
107-
dpctl::tensor::ssize_t out_offset,
107+
const dpctl::tensor::ssize_t out_offset,
108108
const std::vector<sycl::event> &depends)
109109
{
110110
dpctl::tensor::type_utils::validate_type_for_device<T>(q);
@@ -132,7 +132,7 @@ class NanToNumContigKernel;
132132

133133
template <typename T, typename scT>
134134
sycl::event nan_to_num_contig_impl(sycl::queue &q,
135-
size_t nelems,
135+
const size_t nelems,
136136
const scT nan,
137137
const scT posinf,
138138
const scT neginf,

0 commit comments

Comments
 (0)