24.02.1
|
Basic function to execute GEMMLowpQuantizeDown kernels on CL. More...
#include <CLGEMMLowpOutputStage.h>
Public Member Functions | |
CLGEMMLowpOutputStage () | |
CLGEMMLowpOutputStage (const CLGEMMLowpOutputStage &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLGEMMLowpOutputStage (CLGEMMLowpOutputStage &&) | |
Default move constructor. More... | |
CLGEMMLowpOutputStage & | operator= (const CLGEMMLowpOutputStage &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLGEMMLowpOutputStage & | operator= (CLGEMMLowpOutputStage &&) |
Default move assignment operator. More... | |
~CLGEMMLowpOutputStage () | |
Default destructor. More... | |
void | configure (const ICLTensor *input, const ICLTensor *bias, ICLTensor *output, const GEMMLowpOutputStageInfo &info) |
Initialise the kernel's inputs, output. More... | |
void | configure (const CLCompileContext &compile_context, const ICLTensor *input, const ICLTensor *bias, ICLTensor *output, const GEMMLowpOutputStageInfo &info) |
Initialise the kernel's inputs, output. 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 *bias, const ITensorInfo *output, const GEMMLowpOutputStageInfo &info) |
Static function to check if given info will lead to a valid configuration of opencl::kernels::ClGemmLowpQuantizeDownInt32ScaleByFixedPointKernel. More... | |
Basic function to execute GEMMLowpQuantizeDown kernels on CL.
This function calls the following CL kernels:
Definition at line 56 of file CLGEMMLowpOutputStage.h.
Definition at line 50 of file CLGEMMLowpOutputStage.cpp.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move constructor.
|
default |
Default destructor.
void configure | ( | const CLCompileContext & | compile_context, |
const ICLTensor * | input, | ||
const ICLTensor * | bias, | ||
ICLTensor * | output, | ||
const GEMMLowpOutputStageInfo & | info | ||
) |
Initialise the kernel's inputs, output.
[in] | compile_context | The compile context to be used. |
[in] | input | Input tensor. Data type supported: S32 |
[in] | bias | Biases tensor. Only shared biases supported and it can be a nullptr if the biases addition is not required. Biases are 1D tensor with dimensions [OFM]. Data type supported: Same as input . |
[out] | output | Output tensor. Data type supported: QASYMM8/QASYMM8_SIGNED |
[in] | info | GEMMLowp output stage metadata. |
Definition at line 65 of file CLGEMMLowpOutputStage.cpp.
References arm_compute::ACL_BIAS, arm_compute::ACL_DST, arm_compute::ACL_SRC, ARM_COMPUTE_ERROR_ON_NULLPTR, bias, ITensor::info(), arm_compute::test::validation::info, and arm_compute::test::validation::input.
void configure | ( | const ICLTensor * | input, |
const ICLTensor * | bias, | ||
ICLTensor * | output, | ||
const GEMMLowpOutputStageInfo & | info | ||
) |
Initialise the kernel's inputs, output.
Valid data layouts:
Valid data type configurations:
src0 | src1 | dst |
---|---|---|
S32 | S32 | QASYMM8 |
S32 | S32 | QASYMM8_SIGNED |
S32 | S32 | QSYMM16 |
[in] | input | Input tensor. Data type supported: S32 |
[in] | bias | Biases tensor. Only shared biases supported and it can be a nullptr if the biases addition is not required. Biases are 1D tensor with dimensions [OFM]. Data type supported: Same as input . |
[out] | output | Output tensor. Data type supported: QASYMM8/QASYMM8_SIGNED/QSYMM16 |
[in] | info | GEMMLowp output stage metadata. |
Definition at line 57 of file CLGEMMLowpOutputStage.cpp.
References bias, CLKernelLibrary::get(), arm_compute::test::validation::info, and arm_compute::test::validation::input.
Referenced by CLGEMMDeconvolutionLayer::configure(), CLLSTMLayerQuantized::configure(), and CLQLSTMLayer::configure().
|
default |
Default move assignment operator.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
overridevirtual |
Run the kernels contained in the function.
For CPU kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 91 of file CLGEMMLowpOutputStage.cpp.
Referenced by CLGEMMDeconvolutionLayer::run(), CLLSTMLayerQuantized::run(), and CLQLSTMLayer::run().
|
static |
Static function to check if given info will lead to a valid configuration of opencl::kernels::ClGemmLowpQuantizeDownInt32ScaleByFixedPointKernel.
[in] | input | Input tensor. It is the output of CLGEMMLowpMatrixMultiplyCore function. Data type supported: S32 |
[in] | bias | Biases tensor. Only shared biases supported and it can be a nullptr if the addition of biases is not required. Biases are 1D tensor with dimensions [OFM]. Data type supported: Same as input . |
[in] | output | Output tensor. Data type supported: QASYMM8/QASYMM8_SIGNED |
[in] | info | GEMMLowp output stage metadata. |
Definition at line 83 of file CLGEMMLowpOutputStage.cpp.
References bias, arm_compute::test::validation::info, arm_compute::test::validation::input, and ClGemmLowpOutputStage::validate().
Referenced by CLGEMMDeconvolutionLayer::validate(), CLLSTMLayerQuantized::validate(), and CLQLSTMLayer::validate().