Skip to content

Commit fb05a73

Browse files
authored
Merge pull request PaddlePaddle#1808 from QiJune/feature/fix_build_error_with_clang
fix build error with clang
2 parents e329655 + 486c6c5 commit fb05a73

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

paddle/gserver/gradientmachines/GradientMachine.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,7 @@ class GradientMachine {
134134
backward(callback);
135135
}
136136

137-
virtual Argument getLayerOutput(const std::string& layerName) {
138-
return *((Argument*)nullptr);
139-
}
137+
virtual Argument getLayerOutput(const std::string& layerName) = 0;
140138

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

0 commit comments

Comments
 (0)