Skip to content

Commit 05d1a63

Browse files
committed
Corrects typo in py_binary_inplace_ufunc
The check for sufficiently ample memory was performed with the incorrect operand
1 parent 81d0f9e commit 05d1a63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpctl/tensor/libtensor/source/elementwise_functions/elementwise_functions.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ py_binary_inplace_ufunc(const dpctl::tensor::usm_ndarray &lhs,
680680
return std::make_pair(sycl::event(), sycl::event());
681681
}
682682

683-
dpctl::tensor::validation::AmpleMemory::throw_if_not_ample(rhs, rhs_nelems);
683+
dpctl::tensor::validation::AmpleMemory::throw_if_not_ample(lhs, rhs_nelems);
684684

685685
// check memory overlap
686686
auto const &same_logical_tensors =

0 commit comments

Comments
 (0)