Skip to content

Commit 75cd2da

Browse files
Corrected operator true_divide with divide
1 parent 4ec43bf commit 75cd2da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dpctl/tensor/_usmarray.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,9 +1202,9 @@ cdef class usm_ndarray:
12021202
def __truediv__(first, other):
12031203
"See comment in __add__"
12041204
if isinstance(first, usm_ndarray):
1205-
return _dispatch_binary_elementwise(first, "true_divide", other)
1205+
return _dispatch_binary_elementwise(first, "divide", other)
12061206
elif isinstance(other, usm_ndarray):
1207-
return _dispatch_binary_elementwise2(first, "true_divide", other)
1207+
return _dispatch_binary_elementwise2(first, "divide", other)
12081208
return NotImplemented
12091209

12101210
def __xor__(first, other):
@@ -1249,7 +1249,7 @@ cdef class usm_ndarray:
12491249
return _dispatch_binary_elementwise2(other, "subtract", self)
12501250

12511251
def __rtruediv__(self, other):
1252-
return _dispatch_binary_elementwise2(other, "true_divide", self)
1252+
return _dispatch_binary_elementwise2(other, "divide", self)
12531253

12541254
def __rxor__(self, other):
12551255
return _dispatch_binary_elementwise2(other, "logical_xor", self)

0 commit comments

Comments
 (0)