From 937d7bd64c06e2c1a5d6b66a485094edacff2f92 Mon Sep 17 00:00:00 2001 From: Jiaying Zhao Date: Mon, 8 Jul 2019 15:57:46 +0800 Subject: [PATCH] fix TensorBase reset function (#1734) --- src/framework/tensor_base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/framework/tensor_base.h b/src/framework/tensor_base.h index 937cedb0cb..cf977a35d8 100644 --- a/src/framework/tensor_base.h +++ b/src/framework/tensor_base.h @@ -70,7 +70,7 @@ class TensorBase { inline bool IsInitialized() const { return holder_ != nullptr; } - inline bool reset() const { holder_ == nullptr; } + inline void reset() { holder_ = nullptr; } /*! Return the dimensions of the memory block. */ inline const DDim &dims() const { return dims_; } -- GitLab