21.02
|
Basic function to run CLBoundingBoxTransformKernel. More...
#include <CLBoundingBoxTransform.h>
Public Member Functions | |
void | configure (const ICLTensor *boxes, ICLTensor *pred_boxes, const ICLTensor *deltas, const BoundingBoxTransformInfo &info) |
Set the input and output tensors. More... | |
void | configure (const CLCompileContext &compile_context, const ICLTensor *boxes, ICLTensor *pred_boxes, const ICLTensor *deltas, const BoundingBoxTransformInfo &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 *boxes, const ITensorInfo *pred_boxes, const ITensorInfo *deltas, const BoundingBoxTransformInfo &info) |
Static function to check if given info will lead to a valid configuration of CLBoundingBoxTransform. More... | |
Basic function to run CLBoundingBoxTransformKernel.
This function calls the following OpenCL kernels:
Definition at line 43 of file CLBoundingBoxTransform.h.
void configure | ( | const ICLTensor * | boxes, |
ICLTensor * | pred_boxes, | ||
const ICLTensor * | deltas, | ||
const BoundingBoxTransformInfo & | info | ||
) |
Set the input and output tensors.
[in] | boxes | Source tensor. Bounding box proposals in pixel coordinates. Size(M, 4), format [x1, y1, x2, y2]. Data types supported: QASYMM16/F16/F32. |
[out] | pred_boxes | Destination tensor. Pixel coordinates of the transformed bounding boxes. Size (M, 4*K), format [x1, y1, x2, y2]. Data types supported: Same as input |
[in] | deltas | Bounding box translations and scales. Size (M, 4*K), format [dx, dy, dw, dh], K is the number of classes. Data types supported: QASYMM8 if input is QASYMM16, otherwise same as input |
[in] | info | Contains BoundingBox operation information described in BoundingBoxTransformInfo. |
Definition at line 30 of file CLBoundingBoxTransform.cpp.
References CLKernelLibrary::get().
void configure | ( | const CLCompileContext & | compile_context, |
const ICLTensor * | boxes, | ||
ICLTensor * | pred_boxes, | ||
const ICLTensor * | deltas, | ||
const BoundingBoxTransformInfo & | info | ||
) |
Set the input and output tensors.
[in] | compile_context | The compile context to be used. |
[in] | boxes | Source tensor. Bounding box proposals in pixel coordinates. Size(M, 4), format [x1, y1, x2, y2]. Data types supported: QASYMM16/F16/F32. |
[out] | pred_boxes | Destination tensor. Pixel coordinates of the transformed bounding boxes. Size (M, 4*K), format [x1, y1, x2, y2]. Data types supported: Same as input |
[in] | deltas | Bounding box translations and scales. Size (M, 4*K), format [dx, dy, dw, dh], K is the number of classes. Data types supported: QASYMM8 if input is QASYMM16, otherwise same as input |
[in] | info | Contains BoundingBox operation information described in BoundingBoxTransformInfo. |
Definition at line 35 of file CLBoundingBoxTransform.cpp.
|
static |
Static function to check if given info will lead to a valid configuration of CLBoundingBoxTransform.
[in] | boxes | Source tensor info. Bounding box proposals in pixel coordinates. Size(M, 4), format [x1, y1, x2, y2]. Data types supported: QASYMM16/F16/F32. |
[in] | pred_boxes | Destination tensor info. Pixel coordinates of the transformed bounding boxes. Size (M, 4*K), format [x1, y1, x2, y2]. Data types supported: Same as input |
[in] | deltas | Bounding box translations and scales. Size (M, 4*K), format [dx, dy, dw, dh], K is the number of classes. Data types supported: QASYMM8 if input is QASYMM16, otherwise same as input |
[in] | info | Contains BoundingBox operation information described in BoundingBoxTransformInfo. |
Definition at line 43 of file CLBoundingBoxTransform.cpp.
References CLBoundingBoxTransformKernel::validate().
Referenced by arm_compute::test::validation::DATA_TEST_CASE().