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 fbe9221 commit 18fe0c7Copy full SHA for 18fe0c7
python_bindings/bindings.cpp
@@ -261,7 +261,7 @@ class Index {
261
py::array_t < size_t, py::array::c_style | py::array::forcecast > items(ids_);
262
auto ids_numpy = items.request();
263
264
- if (ids_numpy.ndim != 1) {
+ if (ids_numpy.ndim == 0) {
265
throw std::invalid_argument("get_items accepts a list of indices and returns a list of vectors");
266
} else {
267
std::vector<size_t> ids1(ids_numpy.shape[0]);
0 commit comments