提交 9ff1fd41 编写于 作者: Y Yu Yang

Fix MacOS compile error

The private data `tensor_shared_` is not used.
上级 3d6d293a
...@@ -47,13 +47,6 @@ class TensorArray { ...@@ -47,13 +47,6 @@ class TensorArray {
// max number of values allowed to store. // max number of values allowed to store.
const size_t MAX_SIZE{100000}; const size_t MAX_SIZE{100000};
/*
* Inputs:
* - value_shared: share memory between tensors.
*/
explicit TensorArray(bool values_shared = true)
: values_shared_(values_shared) {}
/* /*
* Read the value at location `index` in the `TensorArray`. * Read the value at location `index` in the `TensorArray`.
*/ */
...@@ -111,7 +104,6 @@ class TensorArray { ...@@ -111,7 +104,6 @@ class TensorArray {
private: private:
mutable std::vector<LoDTensor> values_; mutable std::vector<LoDTensor> values_;
bool values_shared_;
}; // class TensorArray }; // class TensorArray
} // namespace framework } // namespace framework
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册