Home
last modified time | relevance | path

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

/frameworks/ml/nn/common/operations/
DActivation.cpp313 static constexpr int32_t kRoundingOffset = 1 << 15; in DownScaleInt32ToInt16Multiplier() local
314 if (multiplier_int32 >= std::numeric_limits<int32_t>::max() - kRoundingOffset) { in DownScaleInt32ToInt16Multiplier()
318 const int32_t result = (multiplier_int32 + kRoundingOffset) >> 16; in DownScaleInt32ToInt16Multiplier()
319 TFLITE_DCHECK_LE(result << 16, multiplier_int32 + kRoundingOffset); in DownScaleInt32ToInt16Multiplier()
320 TFLITE_DCHECK_GT(result << 16, multiplier_int32 - kRoundingOffset); in DownScaleInt32ToInt16Multiplier()