From e2894cf34d419a0452815cdbdc7ee6fabff53b10 Mon Sep 17 00:00:00 2001 From: wt Date: Wed, 10 Nov 2021 19:33:39 +0800 Subject: [PATCH] [skip ci] Add error raise of utils (#11542) Signed-off-by: wangting0128 --- tests/benchmark/milvus_benchmark/runners/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/benchmark/milvus_benchmark/runners/utils.py b/tests/benchmark/milvus_benchmark/runners/utils.py index 6bf5d0d931..e13f3fddef 100644 --- a/tests/benchmark/milvus_benchmark/runners/utils.py +++ b/tests/benchmark/milvus_benchmark/runners/utils.py @@ -72,6 +72,8 @@ def get_len_vectors_per_file(data_type, dimension): vectors_per_file = 100000 elif dimension == 16384: vectors_per_file = 10000 + else: + raise Exception("dimension: %s not supported" % str(dimension)) elif data_type == "sift": vectors_per_file = SIFT_VECTORS_PER_FILE elif data_type in ["binary"]: