Skip to content

Commit 7a92c72

Browse files
authored
Fix "ufunc 'isfinite' not supported for the input types..." part 2 (#933)
1 parent f1f3d7e commit 7a92c72

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dpnp/dpnp_iface_mathematical.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ def fabs(x1, **kwargs):
650650

651651
x1_desc = dpnp.get_dpnp_descriptor(x1)
652652
if x1_desc:
653-
return dpnp_fabs(x1_desc)
653+
return dpnp_fabs(x1_desc).get_pyobj()
654654

655655
return call_origin(numpy.fabs, x1, **kwargs)
656656

@@ -758,7 +758,7 @@ def floor_divide(x1, x2, dtype=None, out=None, where=True, **kwargs):
758758
pass
759759
else:
760760
out_desc = dpnp.get_dpnp_descriptor(out) if out is not None else None
761-
return dpnp_floor_divide(x1_desc, x2_desc, dtype, out_desc, where)
761+
return dpnp_floor_divide(x1_desc, x2_desc, dtype, out_desc, where).get_pyobj()
762762

763763
return call_origin(numpy.floor_divide, x1, x2, out=out, where=where, dtype=dtype, **kwargs)
764764

@@ -1444,7 +1444,7 @@ def remainder(x1, x2, out=None, where=True, dtype=None, **kwargs):
14441444
pass
14451445
else:
14461446
out_desc = dpnp.get_dpnp_descriptor(out) if out is not None else None
1447-
return dpnp_remainder(x1_desc, x2_desc, dtype, out_desc, where)
1447+
return dpnp_remainder(x1_desc, x2_desc, dtype, out_desc, where).get_pyobj()
14481448

14491449
return call_origin(numpy.remainder, x1, x2, out=out, where=where, dtype=dtype, **kwargs)
14501450

@@ -1488,7 +1488,7 @@ def sign(x1, **kwargs):
14881488

14891489
x1_desc = dpnp.get_dpnp_descriptor(x1)
14901490
if x1_desc and not kwargs:
1491-
return dpnp_sign(x1_desc)
1491+
return dpnp_sign(x1_desc).get_pyobj()
14921492

14931493
return call_origin(numpy.sign, x1, **kwargs)
14941494

0 commit comments

Comments
 (0)