ONE - On-device Neural Engine
|
#include <CLPadLayerKernelEx.h>
Public Member Functions | |
CLPadLayerKernelEx () | |
CLPadLayerKernelEx (const CLPadLayerKernelEx &)=delete | |
CLPadLayerKernelEx & | operator= (const CLPadLayerKernelEx &)=delete |
CLPadLayerKernelEx (CLPadLayerKernelEx &&)=default | |
CLPadLayerKernelEx & | operator= (CLPadLayerKernelEx &&)=default |
~CLPadLayerKernelEx ()=default | |
void | configure (const ICLTensor *input, ICLTensor *output, const PaddingList &padding, PixelValue constant_value=PixelValue(), PaddingMode mode=PaddingMode::CONSTANT) |
void | configure (const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const PaddingList &padding, PixelValue constant_value=PixelValue(), PaddingMode mode=PaddingMode::CONSTANT) |
void | run (const Window &window, cl::CommandQueue &queue) 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) |
Interface for the PadLayer function.
Definition at line 51 of file CLPadLayerKernelEx.h.
arm_compute::CLPadLayerKernelEx::CLPadLayerKernelEx | ( | ) |
Default constructor
Definition at line 126 of file CLPadLayerKernelEx.cpp.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Allow instances of this class to be moved
|
default |
Default destructor
References validate().
void arm_compute::CLPadLayerKernelEx::configure | ( | const CLCompileContext & | compile_context, |
const ICLTensor * | input, | ||
ICLTensor * | output, | ||
const PaddingList & | padding, | ||
PixelValue | constant_value = PixelValue() , |
||
PaddingMode | mode = PaddingMode::CONSTANT |
||
) |
Set the input and output tensor.
[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 139 of file CLPadLayerKernelEx.cpp.
References arm_compute::CLKernelLibraryEx::create_kernel(), and arm_compute::CLKernelLibraryEx::get().
void arm_compute::CLPadLayerKernelEx::configure | ( | const ICLTensor * | input, |
ICLTensor * | output, | ||
const PaddingList & | padding, | ||
PixelValue | constant_value = PixelValue() , |
||
PaddingMode | mode = PaddingMode::CONSTANT |
||
) |
Set the input and output tensor.
[in] | input | Source tensor. Data types supported: U8, S8, QASYMM8, QASYMM8_SIGNED, U16, S16, U32, S32, F16, F32. |
[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 131 of file CLPadLayerKernelEx.cpp.
References configure().
Referenced by configure().
|
default |
Allow instances of this class to be moved
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
override |
Definition at line 267 of file CLPadLayerKernelEx.cpp.
Referenced by package.infer.session::inference().
|
static |
Static function to check if given info will lead to a valid configuration of CLPadLayerKernelEx
[in] | input | Source tensor info. Data types supported: U8, S8, QASYMM8, QASYMM8_SIGNED, U16, S16, U32, S32, F16, F32. |
[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 253 of file CLPadLayerKernelEx.cpp.
Referenced by arm_compute::CLPadLayerEx::validate(), and ~CLPadLayerKernelEx().