diff --git a/cpp/src/core/unittest/test_ivf.cpp b/cpp/src/core/unittest/test_ivf.cpp index b25f230c0f66331ef491d6a8eaf5a36251c87113..3c403f690c7f9229c28786f3c8647622207776ad 100644 --- a/cpp/src/core/unittest/test_ivf.cpp +++ b/cpp/src/core/unittest/test_ivf.cpp @@ -243,23 +243,23 @@ TEST_P(IVFTest, hybrid) { hybrid_1_idx->UnsetQuantizer(); } -// { -// auto hybrid_2_idx = std::make_shared(device_id); -// -// auto binaryset = index_->Serialize(); -// hybrid_2_idx->Load(binaryset); -// -// auto quantizer_conf = std::make_shared(); -// quantizer_conf->mode = 1; -// quantizer_conf->gpu_id = device_id; -// auto q = hybrid_2_idx->LoadQuantizer(quantizer_conf); -// quantizer_conf->mode = 2; -// hybrid_2_idx->LoadData(q, quantizer_conf); -// -// auto result = hybrid_2_idx->Search(query_dataset, conf); -// AssertAnns(result, nq, conf->k); -// PrintResult(result, nq, k); -// } + // { + // auto hybrid_2_idx = std::make_shared(device_id); + // + // auto binaryset = index_->Serialize(); + // hybrid_2_idx->Load(binaryset); + // + // auto quantizer_conf = std::make_shared(); + // quantizer_conf->mode = 1; + // quantizer_conf->gpu_id = device_id; + // auto q = hybrid_2_idx->LoadQuantizer(quantizer_conf); + // quantizer_conf->mode = 2; + // hybrid_2_idx->LoadData(q, quantizer_conf); + // + // auto result = hybrid_2_idx->Search(query_dataset, conf); + // AssertAnns(result, nq, conf->k); + // PrintResult(result, nq, k); + // } } // TEST_P(IVFTest, gpu_to_cpu) { diff --git a/cpp/unittest/db/test_db.cpp b/cpp/unittest/db/test_db.cpp index aaf0b7752cc4f4194ac0bf554f86b48f3682bfd6..9e2730a8dddfd1f3bb112cc75541741671ab11c7 100644 --- a/cpp/unittest/db/test_db.cpp +++ b/cpp/unittest/db/test_db.cpp @@ -315,7 +315,7 @@ TEST_F(DBTest, SEARCH_TEST) { stat = db_->Query(TABLE_NAME, file_ids, k, nq, 10, xq.data(), dates, results); ASSERT_TRUE(stat.ok()); } -#endif- +#endif } TEST_F(DBTest, PRELOADTABLE_TEST) {