We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 520e3d1 commit 0117546Copy full SHA for 0117546
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