From 1eb633abafd120f4a2cac477f6c826b2c49f0448 Mon Sep 17 00:00:00 2001 From: cord Date: Mon, 4 Aug 2025 14:42:00 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=93=9D=E5=8C=BA?= =?UTF-8?q?=E5=AE=89=E5=85=A8=E9=97=AE=E9=A2=98=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IndexSDK/TestAscendIndexCluster.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/IndexSDK/TestAscendIndexCluster.cpp b/IndexSDK/TestAscendIndexCluster.cpp index 1dadce2ac..b112477d7 100644 --- a/IndexSDK/TestAscendIndexCluster.cpp +++ b/IndexSDK/TestAscendIndexCluster.cpp @@ -65,6 +65,7 @@ int main(int argc, char **argv) auto ret = index.Init(dim, capacity, meticType, deciveList, resourceSize); if (ret != 0) { printf("[ERROR] Init fail ret = %d \r\n", ret); + index.Finalize(); return 1; } -- Gitee From 69bb50547410fd6f0dde649c819817f78df8ac06 Mon Sep 17 00:00:00 2001 From: cord Date: Mon, 4 Aug 2025 14:54:56 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=89=E5=85=A8?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IndexSDK/TestAscendIndexCluster.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/IndexSDK/TestAscendIndexCluster.cpp b/IndexSDK/TestAscendIndexCluster.cpp index b112477d7..0b729b35b 100644 --- a/IndexSDK/TestAscendIndexCluster.cpp +++ b/IndexSDK/TestAscendIndexCluster.cpp @@ -89,11 +89,10 @@ int main(int argc, char **argv) std::vector queryIdArr(nq); std::iota(queryIdArr.begin(), queryIdArr.end(), start); - bool aboveFilter = true; std::vector> resDist(nq); std::vector> resIdx(nq); - ret = index.ComputeDistanceByThreshold(queryIdArr, codeStartIdx, codeNum, threshold, aboveFilter, resDist, resIdx); + ret = index.ComputeDistanceByThreshold(queryIdArr, codeStartIdx, codeNum, threshold, true, resDist, resIdx); if (ret != 0) { printf("[ERROR] ComputeDistanceByThreshold fail ret = %d \r\n", ret); index.Finalize(); -- Gitee