Skip to content
Snippets Groups Projects
Commit b16d7774 authored by Maxence Naud's avatar Maxence Naud
Browse files

remove duplicate member function TensorImpl::capacity() and TensorImpl::zeros()

parent 960ec58f
No related branches found
No related tags found
1 merge request!17version 0.0.3
......@@ -70,14 +70,6 @@ public:
return std::make_unique<TensorImpl_opencv<T>>(device, dims);
}
inline std::size_t capacity() const noexcept override {
return mData.total() * mData.channels();
}
void zeros() override final {
mData = cv::Mat::zeros(mData.size(), mData.type());
}
void resize(std::vector<DimSize_t> dims) override{
mDims = dims;
size_t product = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment