ONE - On-device Neural Engine
|
#include <CLPadLayerEx.h>
Public Member Functions | |
CLPadLayerEx () | |
CLPadLayerEx (const CLPadLayerEx &)=delete | |
CLPadLayerEx (CLPadLayerEx &&)=default | |
CLPadLayerEx & | operator= (const CLPadLayerEx &)=delete |
CLPadLayerEx & | operator= (CLPadLayerEx &&)=default |
void | configure (ICLTensor *input, ICLTensor *output, const PaddingList &padding, PixelValue constant_value=PixelValue(), PaddingMode mode=PaddingMode::CONSTANT) |
void | configure (const CLCompileContext &compile_context, ICLTensor *input, ICLTensor *output, const PaddingList &padding, PixelValue constant_value=PixelValue(), PaddingMode mode=PaddingMode::CONSTANT) |
void | run () override |
Static Public Member Functions | |
static Status | validate (const ITensorInfo *input, const ITensorInfo *output, const PaddingList &padding, PixelValue constant_value=PixelValue(), PaddingMode mode=PaddingMode::CONSTANT) |
Basic function to pad a tensor. This function calls the following OpenCL functions/kernels:
Definition at line 58 of file CLPadLayerEx.h.
arm_compute::CLPadLayerEx::CLPadLayerEx | ( | ) |
Default constructor
Definition at line 45 of file CLPadLayerEx.cpp.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move constructor
void arm_compute::CLPadLayerEx::configure | ( | const CLCompileContext & | compile_context, |
ICLTensor * | input, | ||
ICLTensor * | output, | ||
const PaddingList & | padding, | ||
PixelValue | constant_value = PixelValue() , |
||
PaddingMode | mode = PaddingMode::CONSTANT |
||
) |
Initialize the function
[in] | compile_context | The compile context to be used. |
[in] | input | Source tensor. Data types supported: All. |
[out] | output | Output tensor. Data type supported: same as input |
[in] | padding | The padding for each spatial dimension of the input tensor. The pair padding[i] specifies the front and the end padding in the i-th dimension. |
[in] | constant_value | (Optional) Constant value to be used for the padding. |
[in] | mode | (Optional) Controls whether the padding should be filled with constant_value using CONSTANT, or reflect the input, either including the border values (SYMMETRIC) or not (REFLECT). |
Definition at line 58 of file CLPadLayerEx.cpp.
References info, and validate().
void arm_compute::CLPadLayerEx::configure | ( | ICLTensor * | input, |
ICLTensor * | output, | ||
const PaddingList & | padding, | ||
PixelValue | constant_value = PixelValue() , |
||
PaddingMode | mode = PaddingMode::CONSTANT |
||
) |
Initialize the function
[in] | input | Source tensor. Data types supported: All. |
[out] | output | Output tensor. Data type supported: same as input |
[in] | padding | The padding for each spatial dimension of the input tensor. The pair padding[i] specifies the front and the end padding in the i-th dimension. |
[in] | constant_value | (Optional) Constant value to be used for the padding. |
[in] | mode | (Optional) Controls whether the padding should be filled with constant_value using CONSTANT, or reflect the input, either including the border values (SYMMETRIC) or not (REFLECT). |
Definition at line 51 of file CLPadLayerEx.cpp.
References configure().
Referenced by configure().
|
default |
Default move assignment operator
References validate().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
override |
Definition at line 99 of file CLPadLayerEx.cpp.
Referenced by package.infer.session::inference().
|
static |
Static function to check if given info will lead to a valid configuration of CLPadLayerEx.
[in] | input | Source tensor info. Data types supported: All. |
[in] | output | Output tensor info. Data type supported: same as input |
[in] | padding | The padding for each spatial dimension of the input tensor. The pair padding[i] specifies the front and the end padding in the i-th dimension. |
[in] | constant_value | (Optional) Constant value to be used for the padding |
[in] | mode | (Optional) Controls whether the padding should be filled with constant_value using CONSTANT, or reflect the input, either including the border values (SYMMETRIC) or not (REFLECT). |
Definition at line 80 of file CLPadLayerEx.cpp.
References info, and arm_compute::CLPadLayerKernelEx::validate().
Referenced by configure(), and operator=().