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.cc187 int64_t encoded_fraction = is_negative ? -fraction : fraction; in DoubleFromFractionAndShift() local
189 while (encoded_fraction < 0x40000000) { in DoubleFromFractionAndShift()
190 encoded_fraction *= 2; in DoubleFromFractionAndShift()
193 while (encoded_fraction > 0x80000000) { in DoubleFromFractionAndShift()
194 encoded_fraction /= 2; in DoubleFromFractionAndShift()
197 encoded_fraction -= 0x40000000; in DoubleFromFractionAndShift()
206 (encoded_fraction << kFractionShift); in DoubleFromFractionAndShift()