Skip to content

Commit bfafcbe

Browse files
author
chengduo
authored
Merge pull request #10141 from luotao1/parallel_executor
fix a cpu bug in parallel_executor.py
2 parents f3e4e42 + 618db96 commit bfafcbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/paddle/fluid/parallel_executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def __init__(self,
7979
else:
8080
for i in xrange(multiprocessing.cpu_count()):
8181
p = core.Place()
82-
self._act_places.append(core.CPUPlace(i))
82+
self._act_places.append(core.CPUPlace())
8383
p.set_place(self._act_places[-1])
8484
self._places.append(p)
8585
assert self._places, "no place for execution"

0 commit comments

Comments
 (0)