CANN 流的封裝器。 更多...
#include <opencv2/cann_call.hpp>
|
| bool | ownStream |
| |
| aclrtStream | 流 |
| |
| std::set< std::shared_ptr< uchar > > | tensorHolders |
| | 昇騰和 CANN 使用流(stream)實現非同步呼叫。這意味著當函式返回時,操作可能尚未完成,甚至尚未開始。如果呼叫者釋放了參與此操作的任何張量(tensor),則有可能訪問無效記憶體。所有張量都應新增到持有者(holder)中,持有者將在 waitForCompletion 函式呼叫時或流析構時被清理。
|
| |
◆ Impl() [1/2]
| cv::cann::AscendStream::Impl::Impl |
( |
| ) |
|
◆ Impl() [2/2]
| cv::cann::AscendStream::Impl::Impl |
( |
aclrtStream | 流 | ) |
|
|
顯式 |
◆ AddTensorHolder()
| void cv::cann::AscendStream::Impl::AddTensorHolder |
( |
const std::shared_ptr< uchar > & | tensorData | ) |
|
◆ 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 |
昇騰和 CANN 使用流(stream)實現非同步呼叫。這意味著當函式返回時,操作可能尚未完成,甚至尚未開始。如果呼叫者釋放了參與此操作的任何張量(tensor),則有可能訪問無效記憶體。所有張量都應新增到持有者(holder)中,持有者將在 waitForCompletion 函式呼叫時或流析構時被清理。
本類的文件生成自以下檔案: