24 #ifndef ARM_COMPUTE_NEGEMMLOWPQUANTIZEDOWNINT32TOUINT8SCALEBYFIXEDPOINTKERNEL_H 25 #define ARM_COMPUTE_NEGEMMLOWPQUANTIZEDOWNINT32TOUINT8SCALEBYFIXEDPOINTKERNEL_H 49 const char *
name()
const override 51 return "NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel";
78 void configure(
const ITensor *
input,
const ITensor *bias,
ITensor *output,
int result_fixedpoint_multiplier,
int result_shift,
int result_offset_after_shift,
int min = 0,
int max = 0);
101 template <
bool is_bounded_relu>
110 QuantizeDownFunctionPtr _func;
114 int _result_fixedpoint_multiplier;
116 int _result_offset_after_shift;
const Window & window() const
The maximum window the kernel can be executed on.
void configure(const ITensor *input, const ITensor *bias, ITensor *output, int result_fixedpoint_multiplier, int result_shift, int result_offset_after_shift, int min=0, int max=0)
Initialise the kernel's input and output.
NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel()
Constructor.
Common interface for all kernels implemented in C++.
Store the tensor's metadata.
void run(const Window &window, const ThreadInfo &info) override
Execute the kernel on the passed window.
Interface for Neon tensor.
Copyright (c) 2017-2021 Arm Limited.
NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel & operator=(const NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel &)=delete
Prevent instances of this class from being copied (As this class contains pointers) ...
static Status validate(const ITensorInfo *input, const ITensorInfo *bias, const ITensorInfo *output, int min=0, int max=0)
Static function to check if given info will lead to a valid configuration of NEGEMMLowpQuantizeDownIn...
~NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel()=default
Default destructor.
Neon kernel used to quantize down the int32 accumulator values of GEMMLowp to QASYMM8.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
Information about executing thread and CPU.
const char * name() const override
Name of the kernel.
Describe a multidimensional execution window.