Skip to content

Commit 07faf2b

Browse files
Use bitwise_invert for __invert__
1 parent 5c1a961 commit 07faf2b

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
@@ -1046,7 +1046,7 @@ cdef class usm_ndarray:
10461046
return _dispatch_binary_elementwise(self, "greater", other)
10471047

10481048
def __invert__(self):
1049-
return _dispatch_unary_elementwise(self, "invert")
1049+
return _dispatch_unary_elementwise(self, "bitwise_invert")
10501050

10511051
def __le__(self, other):
10521052
return _dispatch_binary_elementwise(self, "less_equal", other)

0 commit comments

Comments
 (0)