How to handle really large objects returned from the joblib.Parallel()?
问题 I have the following code, where I try to parallelize: import numpy as np from joblib import Parallel, delayed lst = [[0.0, 1, 2], [3, 4, 5], [6, 7, 8]] arr = np.array(lst) w, v = np.linalg.eigh(arr) def proj_func(i): return np.dot(v[:,i].reshape(-1, 1), v[:,i].reshape(1, -1)) proj = Parallel(n_jobs=-1)(delayed(proj_func)(i) for i in range(len(w))) proj returns a really large list and it's causing memory issues. Is there a way I could work around this? I had thought about returning a