未验证 提交 bfafcbee 编写于 作者: C chengduo 提交者: GitHub

Merge pull request #10141 from luotao1/parallel_executor

fix a cpu bug in parallel_executor.py
......@@ -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"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册