21.02
|
Basic function to simulate a quantization layer. More...
#include <NEQuantizationLayer.h>
Public Member Functions | |
void | configure (const ITensor *input, ITensor *output) |
Set the input and output tensors. More... | |
Public Member Functions inherited from INESimpleFunctionNoBorder | |
INESimpleFunctionNoBorder (IRuntimeContext *ctx=nullptr) | |
Constructor. More... | |
INESimpleFunctionNoBorder (const INESimpleFunctionNoBorder &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
INESimpleFunctionNoBorder (INESimpleFunctionNoBorder &&)=default | |
Default move constructor. More... | |
INESimpleFunctionNoBorder & | operator= (const INESimpleFunctionNoBorder &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
INESimpleFunctionNoBorder & | operator= (INESimpleFunctionNoBorder &&)=default |
Default move assignment operator. More... | |
~INESimpleFunctionNoBorder () | |
Default destructor. More... | |
void | run () override final |
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 *output) |
Static function to check if given info will lead to a valid configuration of NEQuantizationLayer. More... | |
Basic function to simulate a quantization layer.
This function calls the following Neon kernels:
Definition at line 44 of file NEQuantizationLayer.h.
Set the input and output tensors.
[in] | input | Source tensor. The dimensions over the third will be interpreted as batches. Data types supported: QASYMM8/QASYMM8_SIGNED/F32/F16. |
[out] | output | Destination tensor with the same dimensions of input. Data types supported: QASYMM8/QASYMM8_SIGNED/QASYMM16 |
Definition at line 41 of file NEQuantizationLayer.cpp.
References ARM_COMPUTE_ERROR_ON_NULLPTR.
Referenced by NEReduceMean::configure(), NEGenerateProposalsLayer::configure(), NELSTMLayerQuantized::configure(), and main().
|
static |
Static function to check if given info will lead to a valid configuration of NEQuantizationLayer.
[in] | input | Input tensor info. The dimensions over the third will be interpreted as batches. Data types supported: QASYMM8/QASYMM8_SIGNED/F32/F16. |
[in] | output | Output tensor info. Data types supported: QASYMM8/QASYMM8_SIGNED/QASYMM16 |
Definition at line 33 of file NEQuantizationLayer.cpp.
References ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR, ARM_COMPUTE_RETURN_ON_ERROR, and NEQuantizationLayerKernel::validate().
Referenced by NEGenerateProposalsLayer::validate(), and NELSTMLayerQuantized::validate().