Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/lite/kernels/internal/
Dquantization_util.cc202 int64_t encoded_fraction = is_negative ? -fraction : fraction; in DoubleFromFractionAndShift() local
204 while (encoded_fraction < 0x40000000) { in DoubleFromFractionAndShift()
205 encoded_fraction *= 2; in DoubleFromFractionAndShift()
208 while (encoded_fraction > 0x80000000) { in DoubleFromFractionAndShift()
209 encoded_fraction /= 2; in DoubleFromFractionAndShift()
212 encoded_fraction -= 0x40000000; in DoubleFromFractionAndShift()
221 (encoded_fraction << kFractionShift); in DoubleFromFractionAndShift()