Skip to content

Commit 28e847b

Browse files
committed
Use dpnp.copy instead of copy method in nan_to_num
1 parent f6c61d8 commit 28e847b

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
@@ -3120,7 +3120,7 @@ def nan_to_num(x, copy=True, nan=0.0, posinf=None, neginf=None):
31203120
x_type = x.dtype.type
31213121

31223122
if not issubclass(x_type, dpnp.inexact):
3123-
return x.copy() if copy else x
3123+
return dpnp.copy(x) if copy else x
31243124

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

0 commit comments

Comments
 (0)