Searched refs:q_fixed (Results 1 – 1 of 1) sorted by relevance
160 auto q_fixed = static_cast<int64_t>(std::round(q * (1ll << 31))); in QuantizeMultiplier() local161 NN_RET_CHECK(q_fixed <= (1ll << 31)); in QuantizeMultiplier()162 if (q_fixed == (1ll << 31)) { in QuantizeMultiplier()163 q_fixed /= 2; in QuantizeMultiplier()166 NN_RET_CHECK_LE(q_fixed, std::numeric_limits<int32_t>::max()); in QuantizeMultiplier()167 *quantized_multiplier = static_cast<int32_t>(q_fixed); in QuantizeMultiplier()184 int64_t q_fixed = static_cast<int64_t>(std::round(q * (1LL << 31))); in QuantizeMultiplierSmallerThanOne() local185 NN_OPS_CHECK(q_fixed <= (1LL << 31)); in QuantizeMultiplierSmallerThanOne()186 if (q_fixed == (1LL << 31)) { in QuantizeMultiplierSmallerThanOne()187 q_fixed /= 2; in QuantizeMultiplierSmallerThanOne()[all …]