24.02.1
|
Basic function to execute GEMMLowpQuantizeDown kernels. More...
#include <NEGEMMLowpOutputStage.h>
Public Member Functions | |
NEGEMMLowpOutputStage () | |
Constructor. More... | |
NEGEMMLowpOutputStage (const NEGEMMLowpOutputStage &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEGEMMLowpOutputStage & | operator= (const NEGEMMLowpOutputStage &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEGEMMLowpOutputStage (NEGEMMLowpOutputStage &&)=delete | |
Prevent instances of this class from being moved (As this class contains non movable objects) More... | |
NEGEMMLowpOutputStage & | operator= (NEGEMMLowpOutputStage &&)=delete |
Prevent instances of this class from being moved (As this class contains non movable objects) More... | |
~NEGEMMLowpOutputStage () | |
Default destructor. More... | |
void | configure (const ITensor *input, const ITensor *bias, ITensor *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 NEGEMMLowpOutputStage. More... | |
Basic function to execute GEMMLowpQuantizeDown kernels.
This function calls the following operators:
Definition at line 48 of file NEGEMMLowpOutputStage.h.
Constructor.
Definition at line 42 of file NEGEMMLowpOutputStage.cpp.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
delete |
Prevent instances of this class from being moved (As this class contains non movable objects)
|
default |
Default destructor.
void configure | ( | const ITensor * | input, |
const ITensor * | bias, | ||
ITensor * | 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: Data type supported: QASYMM8/QASYMM8_SIGNED/QSYMM16 |
[in] | info | GEMMLowp output stage metadata. |
Definition at line 47 of file NEGEMMLowpOutputStage.cpp.
References arm_compute::ACL_BIAS, arm_compute::ACL_DST, arm_compute::ACL_SRC, ARM_COMPUTE_ERROR_ON_NULLPTR, ARM_COMPUTE_ERROR_THROW_ON, bias, ITensor::info(), arm_compute::test::validation::info, arm_compute::test::validation::input, and NEGEMMLowpOutputStage::validate().
Referenced by NELSTMLayerQuantized::configure(), NEQLSTMLayer::configure(), and main().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
delete |
Prevent instances of this class from being moved (As this class contains non movable objects)
|
overridevirtual |
Run the kernels contained in the function.
For CPU kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 74 of file NEGEMMLowpOutputStage.cpp.
Referenced by main(), NELSTMLayerQuantized::run(), and NEQLSTMLayer::run().
|
static |
Static function to check if given info will lead to a valid configuration of NEGEMMLowpOutputStage.
[in] | input | Input tensor info. It is the output of NEGEMMLowpMatrixMultiplyCore function. Data type supported: S32 |
[in] | bias | Biases tensor info. 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 info. Data type supported: Data type supported: QASYMM8/QASYMM8_SIGNED/QSYMM16 |
[in] | info | GEMMLowp output stage metadata. |
Definition at line 66 of file NEGEMMLowpOutputStage.cpp.
References bias, arm_compute::test::validation::info, arm_compute::test::validation::input, and CpuGemmLowpOutputStage::validate().
Referenced by NEGEMMLowpOutputStage::configure(), NELSTMLayerQuantized::validate(), and NEQLSTMLayer::validate().