提交 618db96e 编写于 作者: L Luo Tao

fix a cpu bug in parallel_executor.py

上级 f3e4e42d
......@@ -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.
先完成此消息的编辑!
想要评论请 注册