Merge pull request #10141 from luotao1/parallel_executor

fix a cpu bug in parallel_executor.py
wangkuiyi-patch-2
chengduo 7 years ago committed by GitHub
commit bfafcbeefb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -79,7 +79,7 @@ class ParallelExecutor(object):
else:
for i in xrange(multiprocessing.cpu_count()):
p = core.Place()
self._act_places.append(core.CPUPlace(i))
self._act_places.append(core.CPUPlace())
p.set_place(self._act_places[-1])
self._places.append(p)
assert self._places, "no place for execution"

Loading…
Cancel
Save