Class cv::cann::AscendStream::Impl#
Warpper of CANN streams.
#include <opencv2/cann_call.hpp>Collaboration diagram for cv::cann::AscendStream::Impl:
Detailed Description#
Warpper of CANN streams.
Constructor & Destructor Documentation#
Impl()#
cv::cann::AscendStream::Impl::Impl()
Impl()#
cv::cann::AscendStream::Impl::Impl(aclrtStream stream)
Member Function Documentation#
AddTensorHolder()#
void cv::cann::AscendStream::Impl::AddTensorHolder(const std::shared_ptr< uchar > & tensorData)
Member Data Documentation#
ownStream#
bool cv::cann::AscendStream::Impl::ownStream
stream#
aclrtStream cv::cann::AscendStream::Impl::stream
tensorHolders#
std::set< std::shared_ptr< uchar > > cv::cann::AscendStream::Impl::tensorHolders
Ascend and CANN use stream to implement asynchronous calls. Which means when function returns, operator may not finish, even not start. If caller free any tensors that participate in this operatation, it have a chance to access invalid memory. All tensors should add to holder, holder will be cleaned by waitForCompletion function, or when the stream is destructing.
Source file#
The documentation for this class was generated from the following file:
opencv2/cann_call.hpp