Skip to content

Commit 0d50ee0

Browse files
committed
Use dpnp.copy instead of copy method in nan_to_num
1 parent 63db43f commit 0d50ee0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpnp/dpnp_iface_mathematical.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3124,7 +3124,7 @@ def nan_to_num(x, copy=True, nan=0.0, posinf=None, neginf=None):
31243124
x_type = x.dtype.type
31253125

31263126
if not issubclass(x_type, dpnp.inexact):
3127-
return x.copy() if copy else x
3127+
return dpnp.copy(x) if copy else x
31283128

31293129
max_f, min_f = _get_max_min(x.real.dtype)
31303130
if posinf is not None:

0 commit comments

Comments
 (0)