Compute Library
18.05
|
Basic function to simulate a dequantization layer. More...
#include <CLDequantizationLayer.h>
Public Member Functions | |
CLDequantizationLayer () | |
Default constructor. More... | |
CLDequantizationLayer (const CLDequantizationLayer &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLDequantizationLayer & | operator= (const CLDequantizationLayer &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
void | configure (const ICLTensor *input, ICLTensor *output, const ICLTensor *min_max) |
Set the input and output tensors. 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 *output, const ITensorInfo *min_max) |
Static function to check if given info will lead to a valid configuration of CLDequantizationLayer. More... | |
Basic function to simulate a dequantization layer.
This function calls the following CL kernels:
Definition at line 43 of file CLDequantizationLayer.h.
Default constructor.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
Set the input and output tensors.
[in] | input | Source tensor with at least 3 dimensions. The dimensions over the third will be interpreted as batches. Data types supported: U8. |
[out] | output | Destination tensor with the same dimensions of input. Data type supported: F32. |
[in] | min_max | Pointer to the tensor with shape [2, batches] which stores the minimum and maximum value for each 3D input tensor. The dimensions over the second must match the batched dimensions of the input tensor. Data type supported: F32. |
Referenced by arm_compute::test::validation::DATA_TEST_CASE().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
overridevirtual |
Run the kernels contained in the function.
For NEON kernels:
For OpenCL kernels:
Implements IFunction.
|
static |
Static function to check if given info will lead to a valid configuration of CLDequantizationLayer.
[in] | input | Input tensor info. Data types supported: U8. |
[in] | output | Output tensor info. Data type supported: F32. |
[in] | min_max | Info for the tensor with shape [2, batches] which stores the minimum and maximum value for each 3D input tensor. The dimensions over the second must match the batched dimensions of the input tensor. Data type supported: F32. |