Compute Library
18.05
|
Basic function to run CLROIPoolingLayerKernel. More...
#include <CLROIPoolingLayer.h>
Public Member Functions | |
void | configure (const ICLTensor *input, const ICLROIArray *rois, ICLTensor *output, const ROIPoolingLayerInfo &pool_info) |
Set the input and output tensors. More... | |
Public Member Functions inherited from ICLSimpleFunction | |
ICLSimpleFunction () | |
Default constructor. More... | |
void | run () overridefinal |
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... | |
Basic function to run CLROIPoolingLayerKernel.
This function calls the following OpenCL kernels:
Definition at line 42 of file CLROIPoolingLayer.h.
void configure | ( | const ICLTensor * | input, |
const ICLROIArray * | rois, | ||
ICLTensor * | output, | ||
const ROIPoolingLayerInfo & | pool_info | ||
) |
Set the input and output tensors.
[in] | input | Source tensor. Data types supported: F16/F32. |
[in] | rois | Array containing ROI. |
[out] | output | Destination tensor. Data types supported: Same as input . |
[in] | pool_info | Contains pooling operation information described in ROIPoolingLayerInfo. |
output
tensor must be the same as pool_info
's pooled width and pooled height. output
tensor and input
tensor must be the same. output
tensor must be the same as the number of elements in rois
array.