Home
last modified time | relevance | path

Searched refs:double_multiplier (Results 1 – 2 of 2) sorted by relevance

/packages/modules/NeuralNetworks/common/
DOperationsExecutionUtils.cpp73 bool QuantizeMultiplier(double double_multiplier, int32_t* quantized_multiplier, int32_t* shift) { in QuantizeMultiplier() argument
74 if (double_multiplier == 0.) { in QuantizeMultiplier()
79 const double q = std::frexp(double_multiplier, shift); in QuantizeMultiplier()
105 bool QuantizeMultiplierSmallerThanOneExp(double double_multiplier, int32_t* quantized_multiplier, in QuantizeMultiplierSmallerThanOneExp() argument
107 NN_RET_CHECK(double_multiplier > 0.); in QuantizeMultiplierSmallerThanOneExp()
108 NN_RET_CHECK(double_multiplier < 1.); in QuantizeMultiplierSmallerThanOneExp()
109 NN_RET_CHECK(QuantizeMultiplier(double_multiplier, quantized_multiplier, left_shift)); in QuantizeMultiplierSmallerThanOneExp()
114 bool QuantizeMultiplierSmallerThanOne(double double_multiplier, int32_t* quantized_multiplier, in QuantizeMultiplierSmallerThanOne() argument
116 NN_OPS_CHECK(double_multiplier >= 0.); in QuantizeMultiplierSmallerThanOne()
117 NN_OPS_CHECK(double_multiplier < 1.); in QuantizeMultiplierSmallerThanOne()
[all …]
/packages/modules/NeuralNetworks/common/include/
DOperationsExecutionUtils.h99 [[nodiscard]] bool QuantizeMultiplier(double double_multiplier, int32_t* quantized_multiplier,
102 [[nodiscard]] bool QuantizeMultiplierSmallerThanOne(double double_multiplier,
109 [[nodiscard]] bool QuantizeMultiplierSmallerThanOneExp(double double_multiplier,
113 [[nodiscard]] bool QuantizeMultiplierGreaterThanOne(double double_multiplier,