We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41cb012 commit c42f2aeCopy full SHA for c42f2ae
1 file changed
dpnp/backend/extensions/indexing/choose.cpp
@@ -256,10 +256,8 @@ std::pair<sycl::event, sycl::event>
256
}
257
258
const py::ssize_t *chc_shape_ = chc_.get_shape_raw();
259
- for (int dim = 0; dim < nd; ++dim) {
260
- if (!(chc_shape[dim] == chc_shape_[dim])) {
261
- throw py::value_error("Choice shapes are not all equal.");
262
- }
+ if (!std::equal(chc_shape_, chc_shape_ + nd, chc_shape)) {
+ throw py::value_error("Choice shapes are not all equal.");
263
264
265
0 commit comments