[skip ci] Add comments of benchmark (#11096)

Signed-off-by: wangting0128 <ting.wang@zilliz.com>
This commit is contained in:
wt 2021-11-02 19:47:19 +08:00 committed by GitHub
parent e747b4b2ce
commit 28ad46ce5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,6 +138,7 @@ def metric_type_trans(metric_type):
def get_dataset(hdf5_file_path):
""" Determine whether hdf5 file exists, and return the content of hdf5 file """
if not os.path.exists(hdf5_file_path):
raise Exception("%s not existed" % hdf5_file_path)
dataset = h5py.File(hdf5_file_path)