Skip to content

Commit 335fb23

Browse files
operator.pos(ums_ndarray) is always an identity (#783)
Since dpnp.positive is not implemented, to unblock integration testing implemented __pos__ to return self.
1 parent f7acaea commit 335fb23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpctl/tensor/_usmarray.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ cdef class usm_ndarray:
857857
return NotImplemented
858858

859859
def __pos__(self):
860-
return _dispatch_unary_elementwise(self, "positive")
860+
return self # _dispatch_unary_elementwise(self, "positive")
861861

862862
def __pow__(first, other, mod):
863863
"See comment in __add__"

0 commit comments

Comments
 (0)