21.02
|
Basic function to run CLPriorBoxLayerKernel. More...
#include <CLPriorBoxLayer.h>
Public Member Functions | |
CLPriorBoxLayer () | |
Constructor. More... | |
void | configure (const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output, const PriorBoxLayerInfo &info) |
Set the input and output tensors. More... | |
void | configure (const CLCompileContext &compile_context, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output, const PriorBoxLayerInfo &info) |
Set the input and output tensors. More... | |
Public Member Functions inherited from ICLSimpleFunction | |
ICLSimpleFunction (CLRuntimeContext *ctx=nullptr) | |
Constructor. More... | |
ICLSimpleFunction (const ICLSimpleFunction &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ICLSimpleFunction (ICLSimpleFunction &&)=default | |
Default move constructor. More... | |
ICLSimpleFunction & | operator= (const ICLSimpleFunction &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ICLSimpleFunction & | operator= (ICLSimpleFunction &&)=default |
Default move assignment operator. More... | |
~ICLSimpleFunction () | |
Default destructor. More... | |
void | run () override final |
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 *input1, const ITensorInfo *input2, const ITensorInfo *output, const PriorBoxLayerInfo &info) |
Static function to check if given info will lead to a valid configuration of CLPriorBoxLayer. More... | |
Basic function to run CLPriorBoxLayerKernel.
Definition at line 39 of file CLPriorBoxLayer.h.
CLPriorBoxLayer | ( | ) |
Constructor.
Definition at line 37 of file CLPriorBoxLayer.cpp.
void configure | ( | const ICLTensor * | input1, |
const ICLTensor * | input2, | ||
ICLTensor * | output, | ||
const PriorBoxLayerInfo & | info | ||
) |
Set the input and output tensors.
[in] | input1 | First source tensor. Data types supported: F32. Data layouts supported: NCHW/NHWC. |
[in] | input2 | Second source tensor. Data types and layouts supported: same as input1 |
[out] | output | Destination tensor. Output dimensions are [W * H * num_priors * 4, 2]. Data types and layouts supported: same as input1 |
[in] | info | Prior box layer info. |
Definition at line 42 of file CLPriorBoxLayer.cpp.
References CLKernelLibrary::get().
void configure | ( | const CLCompileContext & | compile_context, |
const ICLTensor * | input1, | ||
const ICLTensor * | input2, | ||
ICLTensor * | output, | ||
const PriorBoxLayerInfo & | info | ||
) |
Set the input and output tensors.
[in] | compile_context | The compile context to be used. |
[in] | input1 | First source tensor. Data types supported: F32. Data layouts supported: NCHW/NHWC. |
[in] | input2 | Second source tensor. Data types and layouts supported: same as input1 |
[out] | output | Destination tensor. Output dimensions are [W * H * num_priors * 4, 2]. Data types and layouts supported: same as input1 |
[in] | info | Prior box layer info. |
Definition at line 47 of file CLPriorBoxLayer.cpp.
References PriorBoxLayerInfo::aspect_ratios(), CLScheduler::get(), PriorBoxLayerInfo::max_sizes(), and PriorBoxLayerInfo::min_sizes().
|
static |
Static function to check if given info will lead to a valid configuration of CLPriorBoxLayer.
[in] | input1 | First source tensor info. Data types supported: F32. Data layouts supported: NCHW/NHWC. |
[in] | input2 | Second source tensor info. Data types and layouts supported: same as input1 |
[in] | output | Destination tensor info. Output dimensions are [W * H * num_priors * 4, 2]. Data types and layouts supported: same as input1 |
[in] | info | Prior box layer info. |
Definition at line 61 of file CLPriorBoxLayer.cpp.
References CLPriorBoxLayerKernel::validate().
Referenced by arm_compute::test::validation::DATA_TEST_CASE().