21.02
|
Basic function to run opencl::kernels::ClArithmeticKernel for PRELU. More...
#include <CLPReluLayer.h>
Public Member Functions | |
CLPReluLayer () | |
Default Constructor. More... | |
~CLPReluLayer () | |
Default Destructor. More... | |
CLPReluLayer (const CLPReluLayer &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLPReluLayer (CLPReluLayer &&) | |
Default move constructor. More... | |
CLPReluLayer & | operator= (const CLPReluLayer &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLPReluLayer & | operator= (CLPReluLayer &&) |
Default move assignment operator. More... | |
void | configure (ICLTensor *input, ICLTensor *alpha, ICLTensor *output) |
Set the input and output tensor. More... | |
void | configure (const CLCompileContext &compile_context, ICLTensor *input, ICLTensor *alpha, ICLTensor *output) |
Set the input and output tensor. More... | |
void | run () override |
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 *input, const ITensorInfo *alpha, const ITensorInfo *output) |
Static function to check if given info will lead to a valid configuration of CLPReluLayer. More... | |
Basic function to run opencl::kernels::ClArithmeticKernel for PRELU.
Definition at line 76 of file CLPReluLayer.h.
CLPReluLayer | ( | ) |
Default Constructor.
Definition at line 64 of file CLPReluLayer.cpp.
References CLPReluLayer::operator=(), and CLPReluLayer::~CLPReluLayer().
|
default |
Default Destructor.
Referenced by CLPReluLayer::CLPReluLayer().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move constructor.
Set the input and output tensor.
[in] | input | Source tensor. Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32. |
[in] | alpha | PRelu layer parameters. Data types supported: same of input . |
[out] | output | Destination tensor. Data type supported: same as input |
Definition at line 72 of file CLPReluLayer.cpp.
References CLKernelLibrary::get().
void configure | ( | const CLCompileContext & | compile_context, |
ICLTensor * | input, | ||
ICLTensor * | alpha, | ||
ICLTensor * | output | ||
) |
Set the input and output tensor.
[in] | compile_context | The compile context to be used. |
[in] | input | Source tensor. Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32. |
[in] | alpha | PRelu layer parameters. Data types supported: same of input . |
[out] | output | Destination tensor. Data type supported: same as input |
Definition at line 77 of file CLPReluLayer.cpp.
References ITensor::info(), and arm_compute::test::validation::input.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
Referenced by CLPReluLayer::CLPReluLayer().
|
default |
Default move assignment operator.
|
overridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 91 of file CLPReluLayer.cpp.
References arm_compute::ACL_DST, arm_compute::ACL_SRC_0, arm_compute::ACL_SRC_1, and ITensorPack::add_tensor().
|
static |
Static function to check if given info will lead to a valid configuration of CLPReluLayer.
[in] | input | Source tensor info. Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32. |
[in] | alpha | PRelu layer parameters. Data types supported: same of input . |
[in] | output | Destination tensor info. Data type supported: same as input |
Definition at line 86 of file CLPReluLayer.cpp.
References CLPReluLayer::validate().