From 7968b66d72d44edb1648b76acf90df37f0bd73c2 Mon Sep 17 00:00:00 2001 From: dangqingqing Date: Fri, 15 Dec 2017 19:17:48 +0800 Subject: [PATCH] Fix error in function/GemmConvOp.cpp. --- paddle/function/GemmConvOp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/function/GemmConvOp.cpp b/paddle/function/GemmConvOp.cpp index 3387cae3962..de7b70e271b 100644 --- a/paddle/function/GemmConvOp.cpp +++ b/paddle/function/GemmConvOp.cpp @@ -128,7 +128,7 @@ public: } #ifdef PADDLE_MOBILE_INFERENCE if (Device == DEVICE_TYPE_CPU) { - delete memory_; + memory_.reset(); } #endif } -- GitLab