From 5347c8d76322d4288fbc2ad4e0e4ef77fabf558f Mon Sep 17 00:00:00 2001 From: gongweibao Date: Wed, 27 Dec 2017 21:13:48 +0800 Subject: [PATCH] Fix bugs (#7060) * fix bugs --- paddle/framework/executor.cc | 2 +- paddle/operators/send_op.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/framework/executor.cc b/paddle/framework/executor.cc index 997773c1689..31749743a58 100644 --- a/paddle/framework/executor.cc +++ b/paddle/framework/executor.cc @@ -102,7 +102,7 @@ void Executor::Run(const ProgramDesc& pdesc, Scope* scope, int block_id, VLOG(3) << op->DebugString(); op->Run(*local_scope, place_); } - if (create_local_scope) { + if (create_vars && create_local_scope) { scope->DeleteScope(local_scope); } } diff --git a/paddle/operators/send_op.cc b/paddle/operators/send_op.cc index 6e829386832..95c207221a7 100644 --- a/paddle/operators/send_op.cc +++ b/paddle/operators/send_op.cc @@ -79,7 +79,7 @@ class SendOpMaker : public framework::OpProtoAndCheckerMaker { AddComment(R"DOC( Recv operator -This operator will recv tensor from send_op +This operator will send tensor to recv_op. )DOC"); AddAttr>("endpoints", "(string vector, default 127.0.0.1:6164)" -- GitLab