Home
last modified time | relevance | path

Searched refs:left_shift (Results 1 – 4 of 4) sorted by relevance

/frameworks/ml/nn/common/operations/
DBroadcast.cpp135 const int left_shift = 20; in addQuant8() local
140 twice_max_input_scale / ((1 << left_shift) * shapeOut.scale); in addQuant8()
167 op_params.left_shift = left_shift; in addQuant8()
344 const int left_shift = 20; in subQuant8() local
349 twice_max_input_scale / ((1 << left_shift) * shapeOut.scale); in subQuant8()
379 op_params.left_shift = left_shift; in subQuant8()
/frameworks/ml/nn/common/
DOperationsUtils.cpp210 int32_t* left_shift) { in QuantizeMultiplierSmallerThanOneExp() argument
213 NN_RET_CHECK(QuantizeMultiplier(double_multiplier, quantized_multiplier, left_shift)); in QuantizeMultiplierSmallerThanOneExp()
214 NN_RET_CHECK(*left_shift <= 0); in QuantizeMultiplierSmallerThanOneExp()
243 int* left_shift) { in QuantizeMultiplierGreaterThanOne() argument
245 const double q = std::frexp(double_multiplier, left_shift); in QuantizeMultiplierGreaterThanOne()
250 ++*left_shift; in QuantizeMultiplierGreaterThanOne()
252 NN_OPS_CHECK(*left_shift >= 0); in QuantizeMultiplierGreaterThanOne()
DQuantUtils.h22 int left_shift = shift > 0 ? shift : 0; in MultiplyByQuantizedMultiplier() local
25 SaturatingRoundingDoublingHighMul(x * (1 << left_shift), quantized_multiplier), in MultiplyByQuantizedMultiplier()
/frameworks/ml/nn/common/include/
DOperationsUtils.h190 int32_t* quantized_multiplier, int32_t* left_shift);
193 int* left_shift);