mirror of https://github.com/milvus-io/milvus.git
[skip ci] Add raise of get_vectors_from_binary func on benchmark (#10345)
Signed-off-by: wangting0128 <ting.wang@zilliz.com>pull/10384/head
parent
c1ae837231
commit
efd5ac626c
|
@ -97,6 +97,8 @@ def get_vectors_from_binary(nq, dimension, data_type):
|
|||
file_name = DEEP_SRC_DATA_DIR + 'query.npy'
|
||||
elif data_type == "binary":
|
||||
file_name = BINARY_SRC_DATA_DIR + 'query.npy'
|
||||
else:
|
||||
raise Exception("There is no corresponding file for this data type %s." % str(data_type))
|
||||
data = np.load(file_name)
|
||||
vectors = data[0:nq].tolist()
|
||||
return vectors
|
||||
|
|
Loading…
Reference in New Issue