From a791bf6f8afe034716152df1f131213372ebcbe6 Mon Sep 17 00:00:00 2001 From: Oleksandr Pavlyk Date: Thu, 24 Feb 2022 12:29:04 -0600 Subject: [PATCH] operator.pos(ums_ndarray) is always an identity Since dpnp.positive is not implemented, to unblock integration testing implemented __pos__ to return self. --- dpctl/tensor/_usmarray.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dpctl/tensor/_usmarray.pyx b/dpctl/tensor/_usmarray.pyx index 6fd97ebbd8..b1ce20a1b2 100644 --- a/dpctl/tensor/_usmarray.pyx +++ b/dpctl/tensor/_usmarray.pyx @@ -857,7 +857,7 @@ cdef class usm_ndarray: return NotImplemented def __pos__(self): - return _dispatch_unary_elementwise(self, "positive") + return self # _dispatch_unary_elementwise(self, "positive") def __pow__(first, other, mod): "See comment in __add__"