Skip to content

Commit

Permalink
Merge pull request #10141 from luotao1/parallel_executor
Browse files Browse the repository at this point in the history
fix a cpu bug in parallel_executor.py
  • Loading branch information
chengduo authored Apr 23, 2018
2 parents f3e4e42 + 618db96 commit bfafcbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/paddle/fluid/parallel_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def __init__(self,
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"
Expand Down

0 comments on commit bfafcbe

Please sign in to comment.