Searched refs:q_fixed (Results 1 – 1 of 1) sorted by relevance
182 auto q_fixed = static_cast<int64_t>(std::round(q * (1ll << 31))); in QuantizeMultiplier() local183 NN_RET_CHECK(q_fixed <= (1ll << 31)); in QuantizeMultiplier()184 if (q_fixed == (1ll << 31)) { in QuantizeMultiplier()185 q_fixed /= 2; in QuantizeMultiplier()188 NN_RET_CHECK_LE(q_fixed, std::numeric_limits<int32_t>::max()); in QuantizeMultiplier()201 q_fixed = 0; in QuantizeMultiplier()203 *quantized_multiplier = static_cast<int32_t>(q_fixed); in QuantizeMultiplier()228 int64_t q_fixed = static_cast<int64_t>(std::round(q * (1LL << 31))); in QuantizeMultiplierSmallerThanOne() local229 NN_OPS_CHECK(q_fixed <= (1LL << 31)); in QuantizeMultiplierSmallerThanOne()230 if (q_fixed == (1LL << 31)) { in QuantizeMultiplierSmallerThanOne()[all …]