|
24.11
|
#include <armnn/Exceptions.hpp>Go to the source code of this file.
Functions | |
| void | CreateRescaleTosaOperator (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 double_round, bool scale32, bool per_channel, TosaSerializationOperator **op) |
| void | CreateRescaleTosaOperator (const std::string &inputName, const std::string &outputName, int32_t scale_multiplier, int32_t scale_shift, int32_t input_zp, int32_t output_zp, 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 double_round, bool scale32, TosaSerializationOperator **op) |
| void | CreateRescaleTosaOperatorPerChannel (const std::string &inputName, const std::string &outputName, int32_t input_zp, int32_t output_zp, bool double_round, bool scale32, double input_scale, double output_scale, const std::vector< float > &weight_scales, TosaSerializationOperator **op) |
| void | CreateFromInt32RescaleTosaOperator (const std::string &inputName, const std::string &outputName, double output_scale, int32_t output_zp, 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 110 of file TosaRescaleOperatorUtils.hpp.
Referenced by CreateRescaleTosaOperator(), and CreateRescaleTosaOperatorPerChannel().
|
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 65 of file TosaRescaleOperatorUtils.hpp.
Referenced by CreateRescaleTosaOperator(), and CreateRescaleTosaOperatorPerChannel().
|
inline |
Definition at line 216 of file TosaRescaleOperatorUtils.hpp.
References CreateRescaleTosaOperator().
|
inline |
Definition at line 10 of file TosaRescaleOperatorUtils.hpp.
Referenced by AddRescaleOp(), ConvertQuantizeToTosaOperator(), ConvertSoftmaxToTosaOperator(), CreateFromInt32RescaleTosaOperator(), CreateRescaleTosaOperator(), and CreateRescaleTosaOperatorPerChannel().
|
inline |
Definition at line 151 of file TosaRescaleOperatorUtils.hpp.
References ComputeMultiplierAndShiftTosaScale16(), ComputeMultiplierAndShiftTosaScale32(), and CreateRescaleTosaOperator().
|
inline |
|
inline |
Definition at line 176 of file TosaRescaleOperatorUtils.hpp.
References ComputeMultiplierAndShiftTosaScale16(), ComputeMultiplierAndShiftTosaScale32(), and CreateRescaleTosaOperator().