21.02
|
Basic function to run NEBoundingBoxTransformKernel. More...
#include <NEBoundingBoxTransform.h>
Public Member Functions | |
void | configure (const ITensor *boxes, ITensor *pred_boxes, const ITensor *deltas, const BoundingBoxTransformInfo &info) |
Set the input and output tensors. More... | |
Public Member Functions inherited from INESimpleFunctionNoBorder | |
INESimpleFunctionNoBorder (IRuntimeContext *ctx=nullptr) | |
Constructor. More... | |
INESimpleFunctionNoBorder (const INESimpleFunctionNoBorder &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
INESimpleFunctionNoBorder (INESimpleFunctionNoBorder &&)=default | |
Default move constructor. More... | |
INESimpleFunctionNoBorder & | operator= (const INESimpleFunctionNoBorder &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
INESimpleFunctionNoBorder & | operator= (INESimpleFunctionNoBorder &&)=default |
Default move assignment operator. More... | |
~INESimpleFunctionNoBorder () | |
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 NEBoundingBoxTransform. More... | |
Basic function to run NEBoundingBoxTransformKernel.
This function calls the following Neon kernels:
Definition at line 40 of file NEBoundingBoxTransform.h.
void configure | ( | const ITensor * | boxes, |
ITensor * | pred_boxes, | ||
const ITensor * | 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 29 of file NEBoundingBoxTransform.cpp.
Referenced by NEGenerateProposalsLayer::configure().
|
static |
Static function to check if given info will lead to a valid configuration of NEBoundingBoxTransform.
[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 37 of file NEBoundingBoxTransform.cpp.
References NEBoundingBoxTransformKernel::validate().
Referenced by NEGenerateProposalsLayer::validate().