From c201d47192669dedaf2dfa140a13fcbcca606184 Mon Sep 17 00:00:00 2001 From: Fabian Pedregosa Date: Mon, 9 Jan 2017 07:37:25 +0100 Subject: [PATCH] fixes --- copt/stochastic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copt/stochastic.py b/copt/stochastic.py index 4c3b7c57..48cc973c 100644 --- a/copt/stochastic.py +++ b/copt/stochastic.py @@ -121,7 +121,7 @@ def fmin_SAGA( # .. iterate on epochs .. for it in range(max_iter): - with futures.ThreadPoolExecutor() as executor: + with futures.ThreadPoolExecutor(max_workers=n_jobs) as executor: fut = [] for _ in range(n_jobs): fut.append(executor.submit(