ONE - On-device Neural Engine
|
#include <CLQuantizationSymmetricKernel.h>
Public Member Functions | |
CLQuantizationSymmetricKernel () | |
CLQuantizationSymmetricKernel (const CLQuantizationSymmetricKernel &)=delete | |
CLQuantizationSymmetricKernel & | operator= (const CLQuantizationSymmetricKernel &)=delete |
CLQuantizationSymmetricKernel (CLQuantizationSymmetricKernel &&)=default | |
CLQuantizationSymmetricKernel & | operator= (CLQuantizationSymmetricKernel &&)=default |
~CLQuantizationSymmetricKernel ()=default | |
void | configure (const ICLTensor *input, const ICLTensor *scale_factor, ICLTensor *output) |
void | run (const Window &window, cl::CommandQueue &queue) override |
Static Public Member Functions | |
static Status | validate (const ITensorInfo *input, const ITensorInfo *scale_factor, const ITensorInfo *output) |
Interface for the quantization layer kernel.
Definition at line 54 of file CLQuantizationSymmetricKernel.h.
arm_compute::CLQuantizationSymmetricKernel::CLQuantizationSymmetricKernel | ( | ) |
Default constructor
Definition at line 107 of file CLQuantizationSymmetricKernel.cpp.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default Move Constructor.
|
default |
Default destructor
References validate().
void arm_compute::CLQuantizationSymmetricKernel::configure | ( | const ICLTensor * | input, |
const ICLTensor * | scale_factor, | ||
ICLTensor * | output | ||
) |
Set the input, output.
[in] | input | Source tensor. Data types supported: F32/F16. |
[in] | scale_factor | Scale tensor of output . Data type supported: Same as input . |
[out] | output | Destination tensor with the same dimensions of input. Data types supported: S8. |
Definition at line 112 of file CLQuantizationSymmetricKernel.cpp.
References arm_compute::CLKernelLibraryEx::create_kernel(), and arm_compute::CLKernelLibraryEx::get().
Referenced by arm_compute::CLFullyConnectedHybridLayer::configure().
|
default |
Default move assignment operator
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
override |
Definition at line 157 of file CLQuantizationSymmetricKernel.cpp.
|
static |
Static function to check if given info will lead to a valid configuration of CLQuantizationSymmetricKernel
[in] | input | Input tensor info. Data types supported: F32/F16. |
[in] | scale_factor | Scale tensor of output . Data type supported: Same as input . |
[in] | output | Destination tensor info with the same dimensions of input. Data types supported: S8. |
Definition at line 146 of file CLQuantizationSymmetricKernel.cpp.
Referenced by arm_compute::CLFullyConnectedHybridLayer::validate(), and ~CLQuantizationSymmetricKernel().