parallel run of a function with multiple arguments partial map pool

Solutions on MaxInterview for parallel run of a function with multiple arguments partial map pool by the best coders in the world

showing results for - "parallel run of a function with multiple arguments partial map pool"
Brandon
09 Oct 2018
1
2>>> import functools
3
4>>> partial_sum_four = functools.partial(sum_four, a, b, c)
5
6>>> with Pool(processes=4) as pool:
7         res = pool.map(partial_sum_four, ds)
8
9>>> res
10 [7, 8, 9, 10]
11
similar questions