Skip to content

Commit

Permalink
Merge pull request PaddlePaddle#1808 from QiJune/feature/fix_build_er…
Browse files Browse the repository at this point in the history
…ror_with_clang

fix build error with clang
  • Loading branch information
QiJune authored Apr 18, 2017
2 parents e329655 + 486c6c5 commit fb05a73
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions paddle/gserver/gradientmachines/GradientMachine.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,7 @@ class GradientMachine {
backward(callback);
}

virtual Argument getLayerOutput(const std::string& layerName) {
return *((Argument*)nullptr);
}
virtual Argument getLayerOutput(const std::string& layerName) = 0;

// see comment in Layer.h for the function with the same name
virtual void resetState() {}
Expand Down

0 comments on commit fb05a73

Please sign in to comment.