提交 937d7bd6 编写于 作者: J Jiaying Zhao 提交者: GitHub

fix TensorBase reset function (#1734)

上级 8312cdf8
...@@ -70,7 +70,7 @@ class TensorBase { ...@@ -70,7 +70,7 @@ class TensorBase {
inline bool IsInitialized() const { return holder_ != nullptr; } 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. */ /*! Return the dimensions of the memory block. */
inline const DDim &dims() const { return dims_; } inline const DDim &dims() const { return dims_; }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册