From ef55a8f6089f195f105fa28c49f125fadc5babc6 Mon Sep 17 00:00:00 2001 From: Yang Yu Date: Wed, 24 Jan 2018 16:35:35 +0800 Subject: [PATCH] Polish english --- paddle/operators/parallel_do_op.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/paddle/operators/parallel_do_op.cc b/paddle/operators/parallel_do_op.cc index f9cf40bb57..67f9854c02 100644 --- a/paddle/operators/parallel_do_op.cc +++ b/paddle/operators/parallel_do_op.cc @@ -314,12 +314,12 @@ class ParallelDoGradOpDescMaker : public framework::SingleGradOpDescMaker { std::vector og_names; for (auto &og_name : this->OutputGrad(output_param)) { if (all_inputs_in_grad_blocks.count(og_name) != 0) { - // there is some gradient operator needs the og, make this og as the - // input of parallel.do - // if there is no operator need this og, just do not make this og as - // input. + // there are some gradient operators who need the OG. So make this + // OG as an input of parallel.do og_names.push_back(og_name); } + // else, there is no operator who need the OG. Do not use this OG as + // an input } grad->SetInput(framework::GradVarName(output_param), og_names); } -- GitLab