22.08
|
Performs multiplication of an integer with a multiplier which is less than one, using quantized integer arithmetic which is consistent with AndroidNN's CPU executor. More...
#include <EthosnRefConvImpl.hpp>
Public Member Functions | |
EthosnRefQuantizedMultiplierSmallerThanOne (float multiplier) | |
Constructs a EthosnRefQuantizedMultiplierSmallerThanOne which will multiply by the given multiplier. More... | |
int32_t | operator* (int32_t rhs) const |
The implementation of this function is adapted from Android NN's MultiplyByEthosnRefQuantizedMultiplierSmallerThanOne(). More... | |
int64_t | operator* (int64_t rhs) const |
Performs multiplication of an integer with a multiplier which is less than one, using quantized integer arithmetic which is consistent with AndroidNN's CPU executor.
Definition at line 25 of file EthosnRefConvImpl.hpp.
EthosnRefQuantizedMultiplierSmallerThanOne | ( | float | multiplier | ) |
Constructs a EthosnRefQuantizedMultiplierSmallerThanOne which will multiply by the given multiplier.
This stores the appropriate integer quantities (derived from the given multiplier) for later use. The implementation of this function is adapted from Android NN's QuantizeMultiplierSmallerThanOne().
Definition at line 16 of file EthosnRefConvImpl.cpp.
References ARMNN_ASSERT.
int32_t operator* | ( | int32_t | rhs | ) | const |
The implementation of this function is adapted from Android NN's MultiplyByEthosnRefQuantizedMultiplierSmallerThanOne().
Definition at line 48 of file EthosnRefConvImpl.cpp.
References SATURATE_VAL_S_32S.
int64_t operator* | ( | int64_t | rhs | ) | const |