Fix 5045, decrease the nb and nlist in unittest (#6282)

Signed-off-by: dragondriver <jiquan.long@zilliz.com>
pull/6278/head
dragondriver 2021-07-02 18:20:14 +08:00 committed by GitHub
parent 2e120ada86
commit 8dd2051a9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -25,7 +25,7 @@
#include "indexbuilder/utils.h"
#include "test_utils/indexbuilder_test_utils.h"
constexpr int64_t NB = 10000;
constexpr int64_t NB = 1000;
namespace indexcgo = milvus::proto::indexcgo;
using Param = std::pair<milvus::knowhere::IndexType, milvus::knowhere::MetricType>;

View File

@ -48,7 +48,7 @@ generate_conf(const milvus::knowhere::IndexType& index_type, const milvus::knowh
return milvus::knowhere::Config{
{milvus::knowhere::meta::DIM, DIM},
{milvus::knowhere::meta::TOPK, K},
{milvus::knowhere::IndexParams::nlist, 100},
{milvus::knowhere::IndexParams::nlist, 16},
{milvus::knowhere::IndexParams::nprobe, 4},
{milvus::knowhere::IndexParams::m, 4},
{milvus::knowhere::IndexParams::nbits, 8},
@ -59,7 +59,7 @@ generate_conf(const milvus::knowhere::IndexType& index_type, const milvus::knowh
return milvus::knowhere::Config{
{milvus::knowhere::meta::DIM, DIM},
{milvus::knowhere::meta::TOPK, K},
{milvus::knowhere::IndexParams::nlist, 1024},
{milvus::knowhere::IndexParams::nlist, 16},
{milvus::knowhere::IndexParams::nprobe, 4},
{milvus::knowhere::Metric::TYPE, metric_type},
{milvus::knowhere::INDEX_FILE_SLICE_SIZE_IN_MEGABYTE, 4},
@ -71,7 +71,7 @@ generate_conf(const milvus::knowhere::IndexType& index_type, const milvus::knowh
return milvus::knowhere::Config{
{milvus::knowhere::meta::DIM, DIM},
{milvus::knowhere::meta::TOPK, K},
{milvus::knowhere::IndexParams::nlist, 100},
{milvus::knowhere::IndexParams::nlist, 16},
{milvus::knowhere::IndexParams::nprobe, 4},
{milvus::knowhere::IndexParams::nbits, 8},
{milvus::knowhere::Metric::TYPE, metric_type},
@ -84,7 +84,7 @@ generate_conf(const milvus::knowhere::IndexType& index_type, const milvus::knowh
return milvus::knowhere::Config{
{milvus::knowhere::meta::DIM, DIM},
{milvus::knowhere::meta::TOPK, K},
{milvus::knowhere::IndexParams::nlist, 100},
{milvus::knowhere::IndexParams::nlist, 16},
{milvus::knowhere::IndexParams::nprobe, 4},
{milvus::knowhere::IndexParams::m, 4},
{milvus::knowhere::IndexParams::nbits, 8},