Skip to content

Commit f44ccd9

Browse files
committed
inline to_num in nan_to_num kernel
1 parent 3595e54 commit f44ccd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpnp/backend/kernels/elementwise_functions/nan_to_num.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ namespace dpnp::kernels::nan_to_num
3939
{
4040

4141
template <typename T>
42-
T to_num(const T v, const T nan, const T posinf, const T neginf)
42+
inline T to_num(const T v, const T nan, const T posinf, const T neginf)
4343
{
4444
return (sycl::isnan(v)) ? nan
4545
: (sycl::isinf(v)) ? (v > 0) ? posinf : neginf

0 commit comments

Comments
 (0)