| 67 | } |
| 68 | |
| 69 | template <class DT> void DynamicMemoryIndex<DT>::load(const std::string &index_path) |
| 70 | { |
| 71 | const std::string tags_file = index_path + ".tags"; |
| 72 | if (!file_exists(tags_file)) |
| 73 | { |
| 74 | throw std::runtime_error("tags file not found at expected path: " + tags_file); |
| 75 | } |
| 76 | _index.load(index_path.c_str(), _write_parameters.num_threads, _initial_search_complexity); |
| 77 | } |
| 78 | |
| 79 | template <class DT> |
| 80 | int DynamicMemoryIndex<DT>::insert(const py::array_t<DT, py::array::c_style | py::array::forcecast> &vector, |
no test coverage detected