Skip to content

Commit

Permalink
use more descriptive name
Browse files Browse the repository at this point in the history
  • Loading branch information
huy committed Dec 15, 2017
1 parent bdc8b1a commit 7d63219
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions graphkit/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7d63219

Please sign in to comment.