Searched refs:doubleRet (Results 1 – 1 of 1) sorted by relevance
368 double doubleRet = doubleValue / newShape.scale + newShape.offset; in requantize() local369 if (doubleRet < 0) return 0; in requantize()370 if (doubleRet > 255) return 255; in requantize()371 return static_cast<uint8_t>(std::round(doubleRet)); in requantize()377 double doubleRet = doubleValue / newShape.scale + newShape.offset; in requantize() local378 if (doubleRet < -128) return -128; in requantize()379 if (doubleRet > 127) return 127; in requantize()380 return static_cast<int8_t>(std::round(doubleRet)); in requantize()