From f45cb1c2ca8a520fc5be43a0a6e10536e11eaf6d Mon Sep 17 00:00:00 2001 From: tangwei12 Date: Thu, 5 Sep 2019 15:27:46 +0800 Subject: [PATCH] fix bug of communicator flag, test=develop (#19635) --- paddle/fluid/operators/distributed/communicator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/operators/distributed/communicator.cc b/paddle/fluid/operators/distributed/communicator.cc index eeab787cc3..683d4ca98a 100644 --- a/paddle/fluid/operators/distributed/communicator.cc +++ b/paddle/fluid/operators/distributed/communicator.cc @@ -181,7 +181,7 @@ void Communicator::SendThread() { } void Communicator::RecvNonIndependent() { - if (!FLAGS_communicator_independent_recv_thread) { + if (FLAGS_communicator_independent_recv_thread) { return; }