Home
last modified time | relevance | path

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

/packages/modules/NeuralNetworks/common/
DOperationsExecutionUtils.cpp277 double doubleRet = doubleValue / newShape.scale + newShape.offset; in requantize() local
278 if (doubleRet < 0) return 0; in requantize()
279 if (doubleRet > 255) return 255; in requantize()
280 return static_cast<uint8_t>(std::round(doubleRet)); in requantize()
286 double doubleRet = doubleValue / newShape.scale + newShape.offset; in requantize() local
287 if (doubleRet < -128) return -128; in requantize()
288 if (doubleRet > 127) return 127; in requantize()
289 return static_cast<int8_t>(std::round(doubleRet)); in requantize()