/external/webrtc/rtc_base/ |
D | rolling_accumulator_unittest.cc | 38 RollingAccumulator<int> accum(10); in TEST() local 40 EXPECT_EQ(0U, accum.count()); in TEST() 41 EXPECT_DOUBLE_EQ(0.0, accum.ComputeMean()); in TEST() 42 EXPECT_DOUBLE_EQ(0.0, accum.ComputeVariance()); in TEST() 43 EXPECT_EQ(0, accum.ComputeMin()); in TEST() 44 EXPECT_EQ(0, accum.ComputeMax()); in TEST() 48 RollingAccumulator<int> accum(10); in TEST() local 50 accum.AddSample(i); in TEST() 53 EXPECT_EQ(4U, accum.count()); in TEST() 54 EXPECT_DOUBLE_EQ(1.5, accum.ComputeMean()); in TEST() [all …]
|
/external/pdfium/third_party/lcms/src/ |
D | cmspack.c | 98 CMSREGISTER cmsUInt8Number* accum, in UnrollChunkyBytes() argument 116 alpha_factor = _cmsToFixedDomain(FROM_8_TO_16(accum[0])); in UnrollChunkyBytes() 118 accum += Extra; in UnrollChunkyBytes() 123 alpha_factor = _cmsToFixedDomain(FROM_8_TO_16(accum[nChan])); in UnrollChunkyBytes() 130 v = FROM_8_TO_16(*accum); in UnrollChunkyBytes() 140 accum++; in UnrollChunkyBytes() 144 accum += Extra; in UnrollChunkyBytes() 154 return accum; in UnrollChunkyBytes() 166 CMSREGISTER cmsUInt8Number* accum, in UnrollPlanarBytes() argument 177 cmsUInt8Number* Init = accum; in UnrollPlanarBytes() [all …]
|
/external/eigen/unsupported/test/ |
D | cxx11_tensor_scan.cpp | 27 float accum = 0; in test_1d_scan() local 30 VERIFY_IS_EQUAL(result(i), accum); in test_1d_scan() 31 accum += tensor(i); in test_1d_scan() 33 accum += tensor(i); in test_1d_scan() 34 VERIFY_IS_EQUAL(result(i), accum); in test_1d_scan() 38 accum = 1; in test_1d_scan() 42 VERIFY_IS_EQUAL(result(i), accum); in test_1d_scan() 43 accum *= tensor(i); in test_1d_scan() 45 accum *= tensor(i); in test_1d_scan() 46 VERIFY_IS_EQUAL(result(i), accum); in test_1d_scan() [all …]
|
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/ |
D | TensorFunctors.h | 70 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void reduce(const T t, T* accum) const { 72 *accum = sum_op(*accum, t); 75 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void reducePacket(const Packet& p, Packet* accum) const { 76 (*accum) = padd<Packet>(*accum, p); 87 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T finalize(const T accum) const { 88 return accum; 116 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void reduce(const T t, T* accum) { 118 *accum = sum_op(*accum, t); 122 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void reducePacket(const Packet& p, Packet* accum) { 123 (*accum) = padd<Packet>(*accum, p); [all …]
|
/external/flac/src/test_libFLAC/ |
D | bitwriter.c | 54 bwword accum; /* accumulator; bits are right-justified; when full, accum is appended to buffer */ member 81 fprintf(out, "%01d", bw->accum & ((bwword)1 << (bw->bits-j-1)) ? 1:0); in FLAC__bitwriter_dump() 239 if((bw->accum & 0x00ffffff) != test_pattern1[words]) { in test_bitwriter() 240 …printf("FAILED pattern match (bw->accum=%" PRI_BWWORD " != %" PRI_BWWORD ")\n", bw->accum&0x00ffff… in test_bitwriter() 272 if((bw->accum & 0x3fffffff) != test_pattern1[words]) { in test_bitwriter() 273 …printf("FAILED pattern match (bw->accum=%" PRI_BWWORD " != %" PRI_BWWORD ")\n", bw->accum&0x3fffff… in test_bitwriter() 283 ok = TOTAL_BITS(bw) == 8 && (bw->accum & 0xff) == 0; in test_bitwriter() 293 ok = TOTAL_BITS(bw) == 8 && (bw->accum & 0xff) == 0x7F; in test_bitwriter() 303 ok = TOTAL_BITS(bw) == 16 && (bw->accum & 0xffff) == 0xC280; in test_bitwriter() 313 ok = TOTAL_BITS(bw) == 16 && (bw->accum & 0xffff) == 0xDFBF; in test_bitwriter() [all …]
|
/external/angle/third_party/vulkan-deps/glslang/src/Test/ |
D | spv.bufferhandle6.frag | 15 int accum = 0, temp; 16 accum |= x.a[0] - 0; 17 accum |= x.a[pc.identity[1]] - 1; 18 accum |= x.b - 2; 19 accum |= x.c[0].a[0] - 3; 20 accum |= x.c[0].a[pc.identity[1]] - 4; 21 accum |= x.c[0].b - 5; 22 accum |= x.c[pc.identity[1]].a[0] - 6; 23 accum |= x.c[pc.identity[1]].a[pc.identity[1]] - 7; 24 accum |= x.c[pc.identity[1]].b - 8; [all …]
|
/external/deqp-deps/glslang/Test/ |
D | spv.bufferhandle6.frag | 15 int accum = 0, temp; 16 accum |= x.a[0] - 0; 17 accum |= x.a[pc.identity[1]] - 1; 18 accum |= x.b - 2; 19 accum |= x.c[0].a[0] - 3; 20 accum |= x.c[0].a[pc.identity[1]] - 4; 21 accum |= x.c[0].b - 5; 22 accum |= x.c[pc.identity[1]].a[0] - 6; 23 accum |= x.c[pc.identity[1]].a[pc.identity[1]] - 7; 24 accum |= x.c[pc.identity[1]].b - 8; [all …]
|
/external/deqp-deps/glslang/Test/baseResults/ |
D | spv.bufferhandle6.frag.out | 17 Name 8 "accum" 115 8(accum): 7(ptr) Variable Function 117 Store 8(accum) 9 121 26: 6(int) Load 8(accum) 123 Store 8(accum) 27 129 40: 6(int) Load 8(accum) 131 Store 8(accum) 41 135 46: 6(int) Load 8(accum) 137 Store 8(accum) 47 143 56: 6(int) Load 8(accum) [all …]
|
/external/angle/third_party/vulkan-deps/glslang/src/Test/baseResults/ |
D | spv.bufferhandle6.frag.out | 17 Name 8 "accum" 115 8(accum): 7(ptr) Variable Function 117 Store 8(accum) 9 121 26: 6(int) Load 8(accum) 123 Store 8(accum) 27 129 40: 6(int) Load 8(accum) 131 Store 8(accum) 41 135 46: 6(int) Load 8(accum) 137 Store 8(accum) 47 143 56: 6(int) Load 8(accum) [all …]
|
/external/tensorflow/tensorflow/core/kernels/ |
D | debug_ops_gpu.cu.cc | 63 Tout accum[3] = {0.0, 0.0, 0.0}; in ConciseHealthKernel() local 68 ++accum[0]; in ConciseHealthKernel() 70 ++accum[1]; in ConciseHealthKernel() 74 ++accum[2]; in ConciseHealthKernel() 79 GpuAtomicAdd(output, accum[0]); in ConciseHealthKernel() 80 GpuAtomicAdd(output + 1, accum[1]); in ConciseHealthKernel() 81 GpuAtomicAdd(output + 2, accum[2]); in ConciseHealthKernel() 94 Tout accum[6] = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}; in FullHealthKernel() local 99 ++accum[0]; in FullHealthKernel() 101 ++accum[1]; in FullHealthKernel() [all …]
|
D | training_ops_gpu.cu.cc | 37 T* var, T* accum, const T* lr, const T* epsilon, const T* grad, in SparseApplyAdagradKernel() argument 54 T accum_i = accum[param_index]; in SparseApplyAdagradKernel() 70 accum[param_index] = accum_i; in SparseApplyAdagradKernel() 76 T* var, T* accum, const T* lr, const T* l1, const T* l2, const T* grad, in SparseApplyProximalAdagradKernel() argument 93 T accum_i = accum[param_index]; in SparseApplyProximalAdagradKernel() 110 accum[param_index] = accum_i; in SparseApplyProximalAdagradKernel() 115 __global__ void SparseApplyFtrlKernel(T* var, T* accum, T* linear, const T* lr, in SparseApplyFtrlKernel() argument 136 T accum_i = accum[param_index]; in SparseApplyFtrlKernel() 175 accum[param_index] = accum_i; in SparseApplyFtrlKernel() 223 T* var, T* accum, const T* lr, const T* grad, const Tindex* indices, in SparseApplyKerasMomentumKernel() argument [all …]
|
/external/tensorflow/tensorflow/compiler/tests/ |
D | ftrl_ops_test.py | 35 def _eval(self, var, accum, linear, grad, lr, l1, l2, l2_shrinkage=0, argument 39 accum = np.array(accum, dtype=dtype) 51 v_accum = resource_variable_ops.ResourceVariable(accum, dtype=dtype) 68 v_accum.read_value().eval().reshape(accum.shape), 73 accum = np.array([[[1, 3], [2, 5], [6, 8]]]) 77 accum=accum, 81 self.assertAllClose(accum + grad*grad, new_accum) 87 accum=[[[1, 3], [2, 5], [6, 8]]], 97 accum=np.ones((1, 3, 2)), 107 accum=np.ones((1, 3, 2)), [all …]
|
/external/ruy/ruy/ |
D | reference_mul.h | 34 AccumScalar accum = 0; in ReferenceMul() local 38 accum += (lhs_val - lhs.zero_point()) * (rhs_val - rhs.zero_point()); in ReferenceMul() 43 accum += mul_params.bias()[channel]; in ReferenceMul() 45 ApplyMultiplier(mul_params, channel, &accum); in ReferenceMul() 46 accum += dst->zero_point(); in ReferenceMul() 47 accum = std::min<AccumScalar>(accum, mul_params.clamp_max()); in ReferenceMul() 48 accum = std::max<AccumScalar>(accum, mul_params.clamp_min()); in ReferenceMul() 49 *ElementPtr(dst, i, j) = static_cast<DstScalar>(accum); in ReferenceMul()
|
/external/libaom/aom_dsp/arm/ |
D | avg_neon.c | 76 int32x4_t accum = vdupq_n_s32(0); in aom_satd_lp_neon() local 81 accum = vabal_s16(accum, vget_low_s16(src0), zero); in aom_satd_lp_neon() 82 accum = vabal_s16(accum, vget_high_s16(src0), zero); in aom_satd_lp_neon() 83 accum = vabal_s16(accum, vget_low_s16(src8), zero); in aom_satd_lp_neon() 84 accum = vabal_s16(accum, vget_high_s16(src8), zero); in aom_satd_lp_neon() 89 return horizontal_add_s32x4(accum); in aom_satd_lp_neon() 147 int32x4_t accum = zero; in aom_satd_neon() local 153 accum = vabaq_s32(accum, src0, zero); in aom_satd_neon() 154 accum = vabaq_s32(accum, src8, zero); in aom_satd_neon() 155 accum = vabaq_s32(accum, src16, zero); in aom_satd_neon() [all …]
|
/external/tensorflow/tensorflow/tools/android/test/jni/object_tracking/ |
D | utils_neon.cc | 44 float32x4_t accum = vdupq_n_f32(0.0f); in ComputeMeanNeon() local 48 accum = vaddq_f32(accum, vld1q_f32(&arm_vals[offset])); in ComputeMeanNeon() 52 float sum = GetSum(accum); in ComputeMeanNeon() 79 float32x4_t accum = vdupq_n_f32(0.0f); in ComputeStdDevNeon() local 86 accum = vmlaq_f32(accum, deltas, deltas); in ComputeStdDevNeon() 90 float squared_sum = GetSum(accum); in ComputeStdDevNeon() 118 float32x4_t accum = vdupq_n_f32(0.0f); in ComputeCrossCorrelationNeon() local 122 accum = vmlaq_f32(accum, in ComputeCrossCorrelationNeon() 128 float sxy = GetSum(accum); in ComputeCrossCorrelationNeon()
|
/external/tcpdump/ |
D | checksum.c | 94 uint16_t accum; in init_crc10_table() local 99 accum = ((unsigned short) i << 2); in init_crc10_table() 102 if ((accum <<= 1) & 0x400) accum ^= CRC10_POLYNOMIAL; in init_crc10_table() 104 verify_crc10_table[i] = accum; in init_crc10_table() 113 verify_crc10_cksum(uint16_t accum, const u_char *p, int length) in verify_crc10_cksum() argument 119 accum = ((accum << 8) & 0x3ff) in verify_crc10_cksum() 120 ^ crc10_table[( accum >> 2) & 0xff] in verify_crc10_cksum() 123 return accum; in verify_crc10_cksum()
|
/external/rust/crates/atomic/src/ |
D | fallback.rs | 45 (@accum (0, $($_es:expr),*) -> ($($body:tt)*)) 47 (@accum (1, $($es:expr),*) -> ($($body:tt)*)) 48 => {array!(@accum (0, $($es),*) -> ($($body)* $($es,)*))}; 49 (@accum (2, $($es:expr),*) -> ($($body:tt)*)) 50 => {array!(@accum (0, $($es),*) -> ($($body)* $($es,)* $($es,)*))}; 51 (@accum (4, $($es:expr),*) -> ($($body:tt)*)) 52 => {array!(@accum (2, $($es,)* $($es),*) -> ($($body)*))}; 53 (@accum (8, $($es:expr),*) -> ($($body:tt)*)) 54 => {array!(@accum (4, $($es,)* $($es),*) -> ($($body)*))}; 55 (@accum (16, $($es:expr),*) -> ($($body:tt)*)) [all …]
|
/external/tensorflow/tensorflow/core/api_def/base_api/ |
D | api_def_ResourceSparseApplyMomentum.pbtxt | 10 name: "accum" 30 A vector of indices into the first dimension of var and accum. 42 If `True`, updating of the var and accum tensors will be protected 51 var - lr * momentum * accum, so in the end, the var you get is actually 52 var - lr * momentum * accum. 55 summary: "Update relevant entries in \'*var\' and \'*accum\' according to the momentum scheme." 59 That is for rows we have grad for, we update var and accum as follows: 61 accum = accum * momentum + grad 62 var -= lr * accum
|
D | api_def_SparseApplyMomentum.pbtxt | 10 name: "accum" 30 A vector of indices into the first dimension of var and accum. 48 If `True`, updating of the var and accum tensors will be protected 57 var - lr * momentum * accum, so in the end, the var you get is actually 58 var - lr * momentum * accum. 61 summary: "Update relevant entries in \'*var\' and \'*accum\' according to the momentum scheme." 65 That is for rows we have grad for, we update var and accum as follows: 67 $$accum = accum * momentum + grad$$ 68 $$var -= lr * accum$$
|
D | api_def_ResourceSparseApplyKerasMomentum.pbtxt | 10 name: "accum" 30 A vector of indices into the first dimension of var and accum. 42 If `True`, updating of the var and accum tensors will be protected 51 var + momentum * accum, so in the end, the var you get is actually 52 var + momentum * accum. 55 summary: "Update relevant entries in \'*var\' and \'*accum\' according to the momentum scheme." 59 That is for rows we have grad for, we update var and accum as follows: 61 accum = accum * momentum - lr * grad 62 var += accum
|
/external/clang/test/CodeGen/ |
D | vector.c | 32 __m64 accum = _mm_setzero_si64(); in test4() local 35 accum = _mm_add_pi32(p[i], accum); in test4() 37 __m64 accum2 = _mm_unpackhi_pi32(accum, accum); in test4() 38 accum = _mm_add_pi32(accum, accum2); in test4() 40 int result = _mm_cvtsi64_si32(accum); in test4()
|
/external/tensorflow/tensorflow/lite/kernels/internal/reference/ |
D | fully_connected.h | 144 int32_t accum = bias_data[out_c]; in FullyConnected() local 150 accum += filter_val * input_val; in FullyConnected() 156 accum = in FullyConnected() 157 MultiplyByQuantizedMultiplier(accum, output_multiplier, output_shift); in FullyConnected() 159 accum = std::max(accum, output_activation_min - output_offset); in FullyConnected() 160 accum = std::min(accum, output_activation_max - output_offset); in FullyConnected() 161 accum += output_offset; in FullyConnected() 162 output_data[out_c + output_depth * b] = accum; in FullyConnected() 236 int32_t accum[4] = {0}; in ShuffledFullyConnected() local 243 accum[i] += weights_val * input_val; in ShuffledFullyConnected() [all …]
|
/external/skia/bench/ |
D | MathBench.cpp | 354 float accum = 0; in onDraw() local 360 accum += fast_floor(data[i]); in onDraw() 362 this->process(accum); in onDraw() 367 accum += sk_float_floor(data[i]); in onDraw() 369 this->process(accum); in onDraw() 415 int accum = 0; in onDraw() local 420 accum += SkCLZ_portable(fData[i]); in onDraw() 422 this->process(accum); in onDraw() 427 accum += SkCLZ(fData[i]); in onDraw() 429 this->process(accum); in onDraw() [all …]
|
/external/rust/crates/num-bigint/benches/ |
D | shootout-pidigits.rs | 50 accum: BigInt, field 58 accum: Zero::zero(), in new() 68 if self.numer > self.accum { in extract_digit() 71 let (q, r) = (&self.numer * Context::from_i32(3) + &self.accum).div_rem(&self.denom); in extract_digit() 80 self.accum = (&self.accum + (&self.numer << 1)) * &y2; in next_term() 88 self.accum = (&self.accum - &self.denom * d) * &ten; in eliminate_digit()
|
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/ |
D | training_ops.cc | 127 xla::XlaOp var, accum; in Compile() local 129 OP_REQUIRES_OK(ctx, ctx->ReadVariableInput(1, type, &accum_shape, &accum)); in Compile() 156 accum = accum * momentum + grad; in Compile() 160 var = var - (grad * lr + accum * momentum * lr); in Compile() 162 var = var - accum * lr; in Compile() 165 OP_REQUIRES_OK(ctx, ctx->AssignVariable(1, type, accum)); in Compile() 185 xla::XlaOp var, accum; in Compile() local 187 OP_REQUIRES_OK(ctx, ctx->ReadVariableInput(1, type, &accum_shape, &accum)); in Compile() 214 accum = accum * momentum - grad * lr; in Compile() 218 var = var + accum * momentum - grad * lr; in Compile() [all …]
|