Skip to content

Commit e128b3f

Browse files
committed
Fix AttributeError: 'hnswlib.Index' object has no attribute 'get_current_count'
1 parent b4edc28 commit e128b3f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python_bindings/bindings.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,7 @@ PYBIND11_PLUGIN(hnswlib) {
671671
.def("mark_deleted", &Index<float>::markDeleted, py::arg("label"))
672672
.def("resize_index", &Index<float>::resizeIndex, py::arg("new_size"))
673673
.def("get_max_elements", &Index<float>::getMaxElements)
674+
.def("get_current_count", &Index<float>::getCurrentCount)
674675
.def_readonly("space", &Index<float>::space_name)
675676
.def_readonly("dim", &Index<float>::dim)
676677
.def_readwrite("num_threads", &Index<float>::num_threads_default)

0 commit comments

Comments
 (0)