Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/lite/kernels/internal/
Dcommon.h495 static constexpr int32_t kRoundingOffset = 1 << 15; in DownScaleInt32ToInt16Multiplier() local
497 std::numeric_limits<int32_t>::max() - kRoundingOffset) { in DownScaleInt32ToInt16Multiplier()
501 const int32_t result = (multiplier_int32_t + kRoundingOffset) >> 16; in DownScaleInt32ToInt16Multiplier()
502 TFLITE_DCHECK_LE(result << 16, multiplier_int32_t + kRoundingOffset); in DownScaleInt32ToInt16Multiplier()
503 TFLITE_DCHECK_GT(result << 16, multiplier_int32_t - kRoundingOffset); in DownScaleInt32ToInt16Multiplier()