Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/lite/kernels/internal/
Dquantization_util.cc188 int64_t encoded_shift = (shift - 1); in DoubleFromFractionAndShift() local
191 encoded_shift -= 1; in DoubleFromFractionAndShift()
195 encoded_shift += 1; in DoubleFromFractionAndShift()
198 if (encoded_shift < -1022) { in DoubleFromFractionAndShift()
199 encoded_shift = -1023; in DoubleFromFractionAndShift()
200 } else if (encoded_shift > 1022) { in DoubleFromFractionAndShift()
201 encoded_shift = 1023; in DoubleFromFractionAndShift()
203 encoded_shift += kExponentBias; in DoubleFromFractionAndShift()
205 result.double_as_uint = encoded_sign | (encoded_shift << kExponentShift) | in DoubleFromFractionAndShift()