Skip to content

Commit

Permalink
fix parallel do hard coded empty var name (#8469)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yang Yang(Tony) committed Feb 20, 2018
1 parent 633756a commit 3c2cafb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions paddle/fluid/operators/parallel_do_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ class ParallelDoGradOp : public framework::OperatorBase {
}
}
for (auto &s : Outputs(framework::GradVarName(kParameters))) {
if (s == "@EMPTY@") {
if (s == framework::kEmptyVarName) {
continue;
}
VLOG(3) << "Moving " << s;
Expand All @@ -270,7 +270,7 @@ class ParallelDoGradOp : public framework::OperatorBase {
const std::vector<framework::Scope *> &sub_scopes,
const platform::PlaceList &places) const {
for (auto &s : Outputs(framework::GradVarName(kParameters))) {
if (s == "@EMPTY@") {
if (s == framework::kEmptyVarName) {
continue;
}
VLOG(3) << "Accumulating " << s;
Expand Down

0 comments on commit 3c2cafb

Please sign in to comment.