|
|
|
@ -116,7 +116,8 @@ def inference_from_record_pairs(path, threshold, target_col):
|
|
|
|
|
lock = manager.Lock()
|
|
|
|
|
if len(minimal_vio) == 0:
|
|
|
|
|
return md_list, []
|
|
|
|
|
pool = multiprocessing.Pool(len(minimal_vio))
|
|
|
|
|
pool_size = len(minimal_vio) if len(minimal_vio) < 61 else 60
|
|
|
|
|
pool = multiprocessing.Pool(pool_size)
|
|
|
|
|
# tmp = copy.deepcopy(minimal_vio)
|
|
|
|
|
with manager:
|
|
|
|
|
proxy_minimal_vio = manager.list(minimal_vio)
|
|
|
|
@ -145,7 +146,8 @@ def get_mds_metadata(md_list, dataset_path, target_col):
|
|
|
|
|
manager = multiprocessing.Manager()
|
|
|
|
|
if len(md_list) == 0:
|
|
|
|
|
return []
|
|
|
|
|
pool = multiprocessing.Pool(len(md_list))
|
|
|
|
|
pool_size = len(md_list) if len(md_list) < 61 else 60
|
|
|
|
|
pool = multiprocessing.Pool(pool_size)
|
|
|
|
|
result = []
|
|
|
|
|
with manager:
|
|
|
|
|
for _ in md_list:
|
|
|
|
|