From 867224b26254d13046f7287993eebad995ee3735 Mon Sep 17 00:00:00 2001 From: Huihuang Zheng Date: Thu, 24 Feb 2022 10:52:17 +0800 Subject: [PATCH] Add Note for Place of Executor in Parallel Environment (#39063) Add note for Place of Executor in parallel environment --- python/paddle/fluid/executor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/paddle/fluid/executor.py b/python/paddle/fluid/executor.py index 5ae1403f632..447d6457e0a 100644 --- a/python/paddle/fluid/executor.py +++ b/python/paddle/fluid/executor.py @@ -622,7 +622,9 @@ class Executor(object): is CPU version, the default device would be set to `CPUPlace()` . If Paddle is GPU version, the default device would be set to `CUDAPlace(0)` . Default is None. If ``place`` is string, it can be ``cpu``, and ``gpu:x``, where ``x`` - is the index of the GPUs. + is the index of the GPUs. Note: users only pass one Place or None to initialize + Executor when using multiple-cards. Other APIs will override the cards. See + `document for multiple-cards `_ Returns: Executor -- GitLab