Compute Library
 19.08
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 ()
 Constructor. 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 37 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/QSYMM8/QSYMM16.
[out]outputDestination tensor with the same dimensions of input. Data type supported: F16/F32.

Definition at line 32 of file NEDequantizationLayer.cpp.

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

Referenced by NELSTMLayerQuantized::configure(), and arm_compute::test::validation::DATA_TEST_CASE().

◆ 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/QSYMM8/QSYMM16.
[in]outputOutput tensor info. Data type supported: F16/F32.
Returns
a status

Definition at line 39 of file NEDequantizationLayer.cpp.

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

References NEDequantizationLayerKernel::validate().

Referenced by NELSTMLayerQuantized::validate().


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