Compute Library
 21.02
NEDequantizationLayer Class Reference

Basic function to run NEDequantizationLayerKernel that dequantizes an input tensor. More...

#include <NEDequantizationLayer.h>

Collaboration diagram for NEDequantizationLayer:
[legend]

Public Member Functions

void configure (const ITensor *input, ITensor *output)
 Configure the kernel. 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...
 
INESimpleFunctionNoBorderoperator= (const INESimpleFunctionNoBorder &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
INESimpleFunctionNoBorderoperator= (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 NEDequantizationLayer. More...
 

Detailed Description

Basic function to run NEDequantizationLayerKernel that dequantizes an input tensor.

Definition at line 38 of file NEDequantizationLayer.h.

Member Function Documentation

◆ configure()

void configure ( const ITensor input,
ITensor output 
)

Configure the kernel.

Parameters
[in]inputSource tensor. Data types supported: QASYMM8/QASYMM8_SIGNED/QSYMM8_PER_CHANNEL/QSYMM8/QSYMM16.
[out]outputDestination tensor with the same dimensions of input. Data type supported: F16/F32.

Definition at line 31 of file NEDequantizationLayer.cpp.

Referenced by NEReduceMean::configure(), NEDetectionPostProcessLayer::configure(), NEGenerateProposalsLayer::configure(), and NELSTMLayerQuantized::configure().

32 {
33  auto k = std::make_unique<NEDequantizationLayerKernel>();
34  k->configure(input, output);
35  _kernel = std::move(k);
36 }

◆ validate()

Status validate ( const ITensorInfo input,
const ITensorInfo output 
)
static

Static function to check if given info will lead to a valid configuration of NEDequantizationLayer.

Parameters
[in]inputInput tensor info. Data types supported: QASYMM8/QASYMM8_SIGNED/QSYMM8_PER_CHANNEL/QSYMM8/QSYMM16.
[in]outputOutput tensor info. Data type supported: F16/F32.
Returns
a status

Definition at line 38 of file NEDequantizationLayer.cpp.

References NEDequantizationLayerKernel::validate().

Referenced by arm_compute::test::validation::DATA_TEST_CASE(), NEDetectionPostProcessLayer::validate(), NEGenerateProposalsLayer::validate(), and NELSTMLayerQuantized::validate().

39 {
41 }
static Status validate(const ITensorInfo *input, const ITensorInfo *output)
Static function to check if given info will lead to a valid configuration of NEDequantizationLayerKer...

The documentation for this class was generated from the following files: