Skip to content

Commit 1d927cc

Browse files
authored
move erf() to result descriptor. no dparray used anymore (#793)
* move erf() to result descriptor. no dparray used anymore * style
1 parent 2c43f47 commit 1d927cc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dpnp/dpnp_iface_libmath.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
import math
4343

4444
from dpnp.dpnp_algo import *
45-
from dpnp.dparray import dparray
4645
from dpnp.dpnp_utils import *
4746
import dpnp
4847

@@ -82,7 +81,7 @@ def erf(in_array1):
8281
if x1_desc:
8382
return dpnp_erf(x1_desc)
8483

85-
result = dparray(in_array1.shape, dtype=in_array1.dtype)
84+
result = create_output_descriptor_py(in_array1.shape, in_array1.dtype, None).get_pyobj()
8685
for i in range(result.size):
8786
result[i] = math.erf(in_array1[i])
8887

0 commit comments

Comments
 (0)