[skip ci] Add error raise of utils (#11542)

Signed-off-by: wangting0128 <ting.wang@zilliz.com>
pull/11586/head
wt 2021-11-10 19:33:39 +08:00 committed by GitHub
parent 8df87bf272
commit e2894cf34d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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"]: