21.02
|
Basic function to run CPPBoxWithNonMaximaSuppressionLimitKernel. More...
#include <CPPBoxWithNonMaximaSuppressionLimit.h>
Public Member Functions | |
CPPBoxWithNonMaximaSuppressionLimit (std::shared_ptr< IMemoryManager > memory_manager=nullptr) | |
Constructor. More... | |
CPPBoxWithNonMaximaSuppressionLimit (const CPPBoxWithNonMaximaSuppressionLimit &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CPPBoxWithNonMaximaSuppressionLimit & | operator= (const CPPBoxWithNonMaximaSuppressionLimit &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
void | configure (const ITensor *scores_in, const ITensor *boxes_in, const ITensor *batch_splits_in, ITensor *scores_out, ITensor *boxes_out, ITensor *classes, ITensor *batch_splits_out=nullptr, ITensor *keeps=nullptr, ITensor *keeps_size=nullptr, const BoxNMSLimitInfo info=BoxNMSLimitInfo()) |
Configure the BoxWithNonMaximaSuppressionLimit CPP kernel. More... | |
void | run () override |
Run the kernels contained in the function. More... | |
Public Member Functions inherited from IFunction | |
virtual | ~IFunction ()=default |
Destructor. More... | |
virtual void | prepare () |
Prepare the function for executing. More... | |
Static Public Member Functions | |
static Status | validate (const ITensorInfo *scores_in, const ITensorInfo *boxes_in, const ITensorInfo *batch_splits_in, const ITensorInfo *scores_out, const ITensorInfo *boxes_out, const ITensorInfo *classes, const ITensorInfo *batch_splits_out=nullptr, const ITensorInfo *keeps=nullptr, const ITensorInfo *keeps_size=nullptr, const BoxNMSLimitInfo info=BoxNMSLimitInfo()) |
Static function to check if given info will lead to a valid configuration of CPPDetectionOutputLayer. More... | |
Basic function to run CPPBoxWithNonMaximaSuppressionLimitKernel.
Definition at line 39 of file CPPBoxWithNonMaximaSuppressionLimit.h.
CPPBoxWithNonMaximaSuppressionLimit | ( | std::shared_ptr< IMemoryManager > | memory_manager = nullptr | ) |
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
void configure | ( | const ITensor * | scores_in, |
const ITensor * | boxes_in, | ||
const ITensor * | batch_splits_in, | ||
ITensor * | scores_out, | ||
ITensor * | boxes_out, | ||
ITensor * | classes, | ||
ITensor * | batch_splits_out = nullptr , |
||
ITensor * | keeps = nullptr , |
||
ITensor * | keeps_size = nullptr , |
||
const BoxNMSLimitInfo | info = BoxNMSLimitInfo() |
||
) |
Configure the BoxWithNonMaximaSuppressionLimit CPP kernel.
[in] | scores_in | The scores input tensor of size [count, num_classes]. Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32 |
[in] | boxes_in | The boxes input tensor of size [count, num_classes * 4]. Data types supported: QASYMM16 with 0.125 scale and 0 offset if scores_in is QASYMM8/QASYMM8_SIGNED, otherwise same as scores_in |
[in] | batch_splits_in | The batch splits input tensor of size [batch_size]. Data types supported: Same as scores_in |
scores_in
and boxes_in
have items from multiple images. [out] | scores_out | The scores output tensor of size [N]. Data types supported: Same as scores_in |
[out] | boxes_out | The boxes output tensor of size [N, 4]. Data types supported: QASYMM16 with 0.125 scale and 0 offset if scores_in is QASYMM8/QASYMM8_SIGNED, otherwise same as scores_in |
[out] | classes | The classes output tensor of size [N]. Data types supported: Same as scores_in |
[out] | batch_splits_out | (Optional) The batch splits output tensor. Data types supported: Same as scores_in |
[out] | keeps | (Optional) The keeps output tensor of size [N]. Data types supported: Same as scores_in |
[in] | keeps_size | (Optional) Number of filtered indices per class tensor of size [num_classes]. Data types supported: U32. |
[in] | info | (Optional) BoxNMSLimitInfo information. |
Definition at line 133 of file CPPBoxWithNonMaximaSuppressionLimit.cpp.
References TensorAllocator::allocate(), Tensor::allocator(), ARM_COMPUTE_ERROR_ON_NULLPTR, ICloneable< T >::clone(), CPPBoxWithNonMaximaSuppressionLimitKernel::configure(), ITensorInfo::data_type(), arm_compute::F32, ITensor::info(), TensorAllocator::init(), MemoryGroup::manage(), arm_compute::QASYMM8, and arm_compute::QASYMM8_SIGNED.
Referenced by NEGenerateProposalsLayer::configure(), and CLGenerateProposalsLayer::configure().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
overridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 231 of file CPPBoxWithNonMaximaSuppressionLimit.cpp.
References Window::DimY, Scheduler::get(), and IScheduler::schedule().
Referenced by NEGenerateProposalsLayer::run(), and CLGenerateProposalsLayer::validate().
|
static |
Static function to check if given info will lead to a valid configuration of CPPDetectionOutputLayer.
[in] | scores_in | The scores input tensor of size [count, num_classes]. Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32 |
[in] | boxes_in | The boxes input tensor of size [count, num_classes * 4]. Data types supported: QASYMM16 with 0.125 scale and 0 offset if scores_in is QASYMM8/QASYMM8_SIGNED, otherwise same as scores_in |
[in] | batch_splits_in | The batch splits input tensor of size [batch_size]. Data types supported: Same as scores_in |
scores_in
and boxes_in
have items from multiple images. [in] | scores_out | The scores output tensor of size [N]. Data types supported: Same as scores_in |
[in] | boxes_out | The boxes output tensor of size [N, 4]. Data types supported: QASYMM16 with 0.125 scale and 0 offset if scores_in is QASYMM8/QASYMM8_SIGNED, otherwise same as scores_in |
[in] | classes | The classes output tensor of size [N]. Data types supported: Same as scores_in |
[in] | batch_splits_out | (Optional) The batch splits output tensor. Data types supported: Same as scores_in |
[in] | keeps | (Optional) The keeps output tensor of size [N]. Data types supported: Same as scores_in |
[in] | keeps_size | (Optional) Number of filtered indices per class tensor of size [num_classes]. Data types supported: U32. |
[in] | info | (Optional) BoxNMSLimitInfo information. |