未验证 提交 078825e9 编写于 作者: T Tinkerrr 提交者: GitHub

Fix #1298 (#1316)

* fix
Signed-off-by: Nxiaojun.lin <xiaojun.lin@zilliz.com>

* update.
Signed-off-by: Nxiaojun.lin <xiaojun.lin@zilliz.com>

* update
Signed-off-by: Nxiaojun.lin <xiaojun.lin@zilliz.com>

* update..
Signed-off-by: Nxiaojun.lin <xiaojun.lin@zilliz.com>
上级 bfb40ca3
...@@ -24,6 +24,7 @@ Please mark all change in change log and use the issue from GitHub ...@@ -24,6 +24,7 @@ Please mark all change in change log and use the issue from GitHub
- \#1115 - http server support load table into memory - \#1115 - http server support load table into memory
- \#1211 - Server down caused by searching with index_type: HNSW - \#1211 - Server down caused by searching with index_type: HNSW
- \#1240 - Update license declaration - \#1240 - Update license declaration
- \#1298 - Unittest failed when on CPU2GPU case
## Feature ## Feature
- \#216 - Add CLI to get server info - \#216 - Add CLI to get server info
......
...@@ -86,7 +86,7 @@ INSTANTIATE_TEST_CASE_P( ...@@ -86,7 +86,7 @@ INSTANTIATE_TEST_CASE_P(
#endif #endif
// std::make_tuple(milvus::engine::IndexType::SPTAG_KDT_RNT_CPU, "Default", 128, 100, 10, 10), // std::make_tuple(milvus::engine::IndexType::SPTAG_KDT_RNT_CPU, "Default", 128, 100, 10, 10),
// std::make_tuple(milvus::engine::IndexType::SPTAG_BKT_RNT_CPU, "Default", 128, 100, 10, 10), // std::make_tuple(milvus::engine::IndexType::SPTAG_BKT_RNT_CPU, "Default", 128, 100, 10, 10),
std::make_tuple(milvus::engine::IndexType::HNSW, "Default", 64, 10000, 10, 10), std::make_tuple(milvus::engine::IndexType::HNSW, "Default", 64, 10000, 5, 10),
std::make_tuple(milvus::engine::IndexType::FAISS_IDMAP, "Default", 64, 1000, 10, 10), std::make_tuple(milvus::engine::IndexType::FAISS_IDMAP, "Default", 64, 1000, 10, 10),
std::make_tuple(milvus::engine::IndexType::FAISS_IVFFLAT_CPU, "Default", 64, 1000, 10, 10), std::make_tuple(milvus::engine::IndexType::FAISS_IVFFLAT_CPU, "Default", 64, 1000, 10, 10),
std::make_tuple(milvus::engine::IndexType::FAISS_IVFSQ8_CPU, "Default", DIM, NB, 10, 10))); std::make_tuple(milvus::engine::IndexType::FAISS_IVFSQ8_CPU, "Default", DIM, NB, 10, 10)));
...@@ -154,6 +154,9 @@ TEST_P(KnowhereWrapperTest, BASE_TEST) { ...@@ -154,6 +154,9 @@ TEST_P(KnowhereWrapperTest, BASE_TEST) {
#ifdef MILVUS_GPU_VERSION #ifdef MILVUS_GPU_VERSION
TEST_P(KnowhereWrapperTest, TO_GPU_TEST) { TEST_P(KnowhereWrapperTest, TO_GPU_TEST) {
if (index_type == milvus::engine::IndexType::HNSW) {
return;
}
EXPECT_EQ(index_->GetType(), index_type); EXPECT_EQ(index_->GetType(), index_type);
auto elems = nq * k; auto elems = nq * k;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册