Home
last modified time | relevance | path

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

/external/webrtc/modules/audio_coding/neteq/
Dhistogram.cc52 int vector_sum = 0; // Sum up the vector elements as they are processed. in Add() local
56 vector_sum += bucket; in Add()
63 vector_sum += (32768 - forget_factor_) << 15; // Add to vector sum. in Add()
67 vector_sum -= 1 << 30; // Should be zero. Compensate if not. in Add()
68 if (vector_sum != 0) { in Add()
70 int flip_sign = vector_sum > 0 ? -1 : 1; in Add()
73 int correction = flip_sign * std::min(std::abs(vector_sum), bucket >> 4); in Add()
75 vector_sum += correction; in Add()
76 if (std::abs(vector_sum) == 0) { in Add()
81 RTC_DCHECK(vector_sum == 0); // Verify that the above is correct. in Add()
/external/tensorflow/tensorflow/compiler/xla/tests/
Dlocal_client_execute_test.cc346 auto vector_sum = Add(inner_vector, outer_vector); in XLA_TEST_F() local
347 Tuple(&builder, {negate_array, vector_sum}); in XLA_TEST_F()