From 486c6c555fe0bc38ff6f5890ae3b0f2f723b080b Mon Sep 17 00:00:00 2001 From: qijun Date: Tue, 18 Apr 2017 15:23:33 +0800 Subject: [PATCH] fix build error with clang --- paddle/gserver/gradientmachines/GradientMachine.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/paddle/gserver/gradientmachines/GradientMachine.h b/paddle/gserver/gradientmachines/GradientMachine.h index bc2f2f856..f9c82a2be 100644 --- a/paddle/gserver/gradientmachines/GradientMachine.h +++ b/paddle/gserver/gradientmachines/GradientMachine.h @@ -134,9 +134,7 @@ public: 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() {} -- GitLab