24.02
|
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 <ConvImpl.hpp>
Public Member Functions | |
QuantizedMultiplierSmallerThanOne (float multiplier) | |
Constructs a QuantizedMultiplierSmallerThanOne 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 MultiplyByQuantizedMultiplierSmallerThanOne(). More... | |
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 26 of file ConvImpl.hpp.
QuantizedMultiplierSmallerThanOne | ( | float | multiplier | ) |
Constructs a QuantizedMultiplierSmallerThanOne 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 ConvImpl.cpp.
References ARMNN_ASSERT.
int32_t operator* | ( | int32_t | rhs | ) | const |
The implementation of this function is adapted from Android NN's MultiplyByQuantizedMultiplierSmallerThanOne().
Definition at line 41 of file ConvImpl.cpp.