diff --git a/src/framework/tensor_base.h b/src/framework/tensor_base.h index 937cedb0cbb2c7d1e005d57357df1fd098a2ff71..cf977a35d8b658238c1a9504bc332190b8c9e69d 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_; }