From 7d6321987be2a11895a8b6fa0bc83cef4f6e1fe3 Mon Sep 17 00:00:00 2001 From: huy Date: Fri, 15 Dec 2017 14:46:11 -0800 Subject: [PATCH] use more descriptive name --- graphkit/network.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/graphkit/network.py b/graphkit/network.py index 17f4a553..8c440be3 100644 --- a/graphkit/network.py +++ b/graphkit/network.py @@ -238,9 +238,9 @@ def _compute_thread_pool_barrier_method(self, named_inputs, outputs, from multiprocessing.dummy import Pool # if we have not already created a thread_pool, create one - if not hasattr(self, "_pool"): - self._pool = Pool(thread_pool_size) - pool = self._pool + if not hasattr(self, "_thread_pool"): + self._thread_pool = Pool(thread_pool_size) + pool = self._thread_pool cache = {} cache.update(named_inputs)