mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-30 23:45:28 +08:00
update
Former-commit-id: 99f1f53c6f2b1775f78acf0ba5560a112c68140b
This commit is contained in:
parent
87af3d632d
commit
380363f477
@ -14,7 +14,7 @@
|
||||
#include "Index.h"
|
||||
#include "faiss/index_io.h"
|
||||
#include "faiss/IndexIVF.h"
|
||||
#include <faiss/IVFlib.h>
|
||||
#include "faiss/IVFlib.h"
|
||||
#include "server/ServerConfig.h"
|
||||
|
||||
namespace zilliz {
|
||||
@ -86,7 +86,6 @@ bool Index::search(idx_t n, const float *data, idx_t k, float *distances, long *
|
||||
try {
|
||||
if(auto ivf_index = std::dynamic_pointer_cast<faiss::IndexIVF>(index_)) {
|
||||
ivf_index->nprobe = Nprobe::GetInstance().GetNprobe();
|
||||
std::cout << "nprobe = " << ivf_index->nprobe << std::endl;
|
||||
}
|
||||
index_->search(n, data, k, distances, labels);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user