[aggregator] On task per child in multiprocess (to free memory)
This commit is contained in:
+1
-1
@@ -47,7 +47,7 @@ class Aggregator:
|
||||
_map_aux, func, self.path, self.path_out, self.pp_params, **kwargs
|
||||
)
|
||||
|
||||
pool = MyPool(processes=num_process)
|
||||
pool = MyPool(processes=num_process, maxtasksperchild=1)
|
||||
result = pool.map(map_fn, run_num)
|
||||
pool.close()
|
||||
pool.join()
|
||||
|
||||
Reference in New Issue
Block a user