From 618db96ee7bbe673df938d1ac22d1af0b7b23e6d Mon Sep 17 00:00:00 2001 From: Luo Tao Date: Mon, 23 Apr 2018 20:46:24 +0800 Subject: [PATCH] fix a cpu bug in parallel_executor.py --- python/paddle/fluid/parallel_executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/parallel_executor.py b/python/paddle/fluid/parallel_executor.py index 364a3eba7..4adbb2ea9 100644 --- a/python/paddle/fluid/parallel_executor.py +++ b/python/paddle/fluid/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" -- GitLab