25.02
|
#include <armnn/Exceptions.hpp>
Go to the source code of this file.
Functions | |
void | CreateRawRescaleTosaOperator (const std::string &inputName, const std::string &outputName, const std::vector< int32_t > &multipliers, const std::vector< int32_t > &shifts, int32_t input_zp, int32_t output_zp, bool input_unsigned, bool output_unsigned, bool double_round, bool scale32, bool per_channel, TosaSerializationOperator **op) |
void | ComputeMultiplierAndShiftTosaScale32 (double scale, int32_t &multiplier, int32_t &shift) |
The following is taken from mlir/lib/Dialect/Tosa/Utils/QuantUtils.cpp in the LLVM project From a scale value, generates multiplier and shift values where mantissa is in [-1.0,-0.5] or [0.5, 1.0] such that multiplier = mantissa*2^shift for 32-bit scaling. More... | |
void | ComputeMultiplierAndShiftTosaScale16 (double scale, int32_t &multiplier, int32_t &shift) |
The following is taken from mlir/lib/Dialect/Tosa/Utils/QuantUtils.cpp in the LLVM project From a scale value, generates multiplier and shift values where mantissa is in [-1.0,-0.5] or [0.5, 1.0] such that multiplier = mantissa*2^shift for 16-bit scaling. More... | |
void | CreateRescaleTosaOperator (const std::string &inputName, const std::string &outputName, double scale, int32_t input_zp, int32_t output_zp, bool input_unsigned, bool output_unsigned, bool double_round, bool scale32, TosaSerializationOperator **op) |
void | CreateRescaleTosaOperatorForWeights (const std::string &inputName, const std::string &outputName, int32_t input_zp, int32_t output_zp, bool input_unsigned, bool output_unsigned, bool double_round, bool scale32, double input_scale, double output_scale, const std::vector< float > &weight_scales, TosaSerializationOperator **op) |
|
inline |
The following is taken from mlir/lib/Dialect/Tosa/Utils/QuantUtils.cpp in the LLVM project From a scale value, generates multiplier and shift values where mantissa is in [-1.0,-0.5] or [0.5, 1.0] such that multiplier = mantissa*2^shift for 16-bit scaling.
Definition at line 123 of file TosaRescaleOperatorUtils.hpp.
Referenced by CreateRescaleTosaOperator(), and CreateRescaleTosaOperatorForWeights().
|
inline |
The following is taken from mlir/lib/Dialect/Tosa/Utils/QuantUtils.cpp in the LLVM project From a scale value, generates multiplier and shift values where mantissa is in [-1.0,-0.5] or [0.5, 1.0] such that multiplier = mantissa*2^shift for 32-bit scaling.
Definition at line 78 of file TosaRescaleOperatorUtils.hpp.
Referenced by CreateRescaleTosaOperator(), and CreateRescaleTosaOperatorForWeights().
|
inline |
Definition at line 10 of file TosaRescaleOperatorUtils.hpp.
Referenced by CreateRescaleTosaOperator(), and CreateRescaleTosaOperatorForWeights().
|
inline |
Definition at line 164 of file TosaRescaleOperatorUtils.hpp.
References ComputeMultiplierAndShiftTosaScale16(), ComputeMultiplierAndShiftTosaScale32(), and CreateRawRescaleTosaOperator().
Referenced by ConvertQuantizeToTosaOperator(), and ConvertSoftmaxToTosaOperator().
|
inline |
Definition at line 194 of file TosaRescaleOperatorUtils.hpp.
References ComputeMultiplierAndShiftTosaScale16(), ComputeMultiplierAndShiftTosaScale32(), and CreateRawRescaleTosaOperator().