From 694ac20fa6237f6b6408c7f7ae459e9b15201bd4 Mon Sep 17 00:00:00 2001 From: Yuang Liu Date: Mon, 18 Apr 2022 19:22:23 +0800 Subject: [PATCH] [fleet executor] bug fix (#41921) --- paddle/fluid/distributed/fleet_executor/dist_model.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/distributed/fleet_executor/dist_model.cc b/paddle/fluid/distributed/fleet_executor/dist_model.cc index c1408130b5e..cacd55e02a5 100644 --- a/paddle/fluid/distributed/fleet_executor/dist_model.cc +++ b/paddle/fluid/distributed/fleet_executor/dist_model.cc @@ -168,7 +168,7 @@ bool DistModel::Init() { if (!PrepareFeedAndFetch()) { return false; } - if (!CommInit()) { + if (config_.nranks > 1 && !CommInit()) { return false; } if (!PrepareFleetExe()) { -- GitLab