/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/third_party/ruy/ruy/ |
A 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()
|
A D | apply_multiplier.h | 43 int channel, AccumScalar* accum); 70 int channel, AccumScalar* accum) { 77 *accum = MultiplyByQuantizedMultiplier(*accum, m, e); 85 int channel, AccumScalar* accum) { 87 accum);
|
A D | ruy_test.bzl | 5 for (lhs, rhs, accum, dst) in lhs_rhs_accum_dst: 7 name = "%s_%s_%s_%s_%s" % (name, lhs, rhs, accum, dst), 12 "-DRUY_TEST_ACCUMSCALAR=%s" % accum, 21 for (lhs, rhs, accum, dst) in lhs_rhs_accum_dst: 23 name = "%s_%s_%s_%s_%s" % (name, lhs, rhs, accum, dst), 29 "-DRUY_TEST_ACCUMSCALAR=%s" % accum,
|
A D | kernel.h | 213 AccumScalar accum = 0; 217 accum += lhs_val * rhs_val; 222 accum += mul_params.bias()[channel]; 225 accum -= lhs.zero_point * rhs.sums[j]; 228 accum -= rhs.zero_point * lhs.sums[i]; 231 accum += lhs.zero_point * rhs.zero_point * depth; 233 ApplyMultiplier(mul_params, channel, &accum); 234 accum += dst->zero_point; 235 accum = std::min<AccumScalar>(accum, mul_params.clamp_max()); 236 accum = std::max<AccumScalar>(accum, mul_params.clamp_min()); [all …]
|
A D | pack.h | 116 SumsType accum = 0; in Run() local 124 accum += packed_val; in Run() 128 sums[col] = accum; in Run()
|
A D | kernel_avx512.cc | 279 auto process_column = [=](int col, __m512i& accum) { 285 accum = _mm512_add_epi32( 287 accum = _mm512_add_epi32( 379 auto apply_multiplier = [=](__m512i& accum, int col) { 394 accum = _mm512_sllv_epi32(accum, left_shift_val); 396 _mm512_cvtepi32_epi64(_mm512_extracti32x8_epi32(accum, 0)), 399 _mm512_cvtepi32_epi64(_mm512_extracti32x8_epi32(accum, 1)), 414 accum = _mm512_inserti32x8(accum, 434 auto apply_multiplier = [=](__m512i& accum) { 435 accum = _mm512_sllv_epi32(accum, left_shift); [all …]
|
A D | kernel_avx2_fma.cc | 306 __m256i& accum) { 307 accum = _mm256_add_epi32( 308 accum, _mm256_madd_epi16(lhs_16_bit_low, rhs_dup_lo)); 309 accum = _mm256_add_epi32( 310 accum, _mm256_madd_epi16(lhs_16_bit_high, rhs_dup_hi)); 483 auto apply_multiplier = [=](__m256i& accum) { 484 __m256i shifted_accum = _mm256_sllv_epi32(accum, left_shift); 506 accum = _mm256_add_epi32(results, post_scaling_offset);
|
A D | kernel_avx.cc | 659 __m256i& accum) { 661 __m128i accum_lo = _mm256_extractf128_si256(accum, 0); 662 __m128i accum_hi = _mm256_extractf128_si256(accum, 1); 683 accum = _mm256_set_m128i(accum_hi, accum_lo); 868 auto apply_multiplier = [=](__m256i& accum) { 870 intrin_utils::mm256_sllv_epi32<path>(accum, left_shift); 898 accum =
|
A D | pack_avx2_fma.cc | 665 std::int32_t accum = 0; 673 accum += packed_val; 677 sums[col] += accum;
|
A D | pack_arm.cc | 2448 std::int32_t accum = 0; in Pack8bitRowMajorForNeon() local 2454 accum += packed_val; in Pack8bitRowMajorForNeon() 2458 sums[col] += accum; in Pack8bitRowMajorForNeon()
|
A D | pack_avx512.cc | 804 std::int32_t accum = 0; 812 accum += packed_val; 816 sums[col] += accum;
|
A D | pack_avx.cc | 807 std::int32_t accum = 0; 815 accum += packed_val; 819 sums[col] += accum;
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/kernels/internal/reference/ |
A D | fully_connected.h | 141 int32_t accum = bias_data[out_c]; in FullyConnected() local 147 accum += filter_val * input_val; in FullyConnected() 153 accum = in FullyConnected() 156 accum = std::max(accum, output_activation_min - output_offset); in FullyConnected() 157 accum = std::min(accum, output_activation_max - output_offset); in FullyConnected() 158 accum += output_offset; in FullyConnected() 233 int32_t accum[4] = {0}; in ShuffledFullyConnected() local 240 accum[i] += weights_val * input_val; in ShuffledFullyConnected() 246 int32_t acc = accum[i] + bias_data[c + i]; in ShuffledFullyConnected() 275 int32_t accum[4][4]; in ShuffledFullyConnected() local [all …]
|
A D | reference_ops.h | 738 int32 accum = bias_data_int32[out_c]; in LstmCell() local 744 accum += input_val * weights_val; in LstmCell() 750 accum = in LstmCell() 751 MultiplyByQuantizedMultiplier(accum, accum_multiplier, accum_shift); in LstmCell() 753 accum = std::max(-32768, std::min(32767, accum)); in LstmCell() 754 activ_temp_data_int16[out_c + fc_output_depth * b] = accum; in LstmCell() 894 float accum = 0.f; in LocalResponseNormalization() local 897 accum += input_val * input_val; in LocalResponseNormalization() 900 std::pow(op_params.bias + op_params.alpha * accum, -op_params.beta); in LocalResponseNormalization()
|
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/dsp/ |
A D | rescaler.c | 40 int accum = wrk->x_add; in WebPRescalerImportRowExpand_C() local 45 wrk->frow[x_out] = right * wrk->x_add + (left - right) * accum; in WebPRescalerImportRowExpand_C() 48 accum -= wrk->x_sub; in WebPRescalerImportRowExpand_C() 49 if (accum < 0) { in WebPRescalerImportRowExpand_C() 54 accum += wrk->x_add; in WebPRescalerImportRowExpand_C() 72 int accum = 0; in WebPRescalerImportRowShrink_C() local 75 accum += wrk->x_add; in WebPRescalerImportRowShrink_C() 76 while (accum > 0) { in WebPRescalerImportRowShrink_C() 77 accum -= wrk->x_sub; in WebPRescalerImportRowShrink_C() 84 const rescaler_t frac = base * (-accum); in WebPRescalerImportRowShrink_C() [all …]
|
A D | rescaler_sse2.c | 51 int accum = x_add; in RescalerImportRowExpand_SSE2() local 66 const __m128i mult = _mm_set1_epi32(((x_add - accum) << 16) | accum); in RescalerImportRowExpand_SSE2() 72 if (accum < 0) { in RescalerImportRowExpand_SSE2() 75 accum += x_add; in RescalerImportRowExpand_SSE2() 92 if (accum < 0) { in RescalerImportRowExpand_SSE2() 105 accum += x_add; in RescalerImportRowExpand_SSE2() 109 assert(accum == 0); in RescalerImportRowExpand_SSE2() 115 int accum = 0; in RescalerImportRowShrink_SSE2() local 134 while (accum > 0) { in RescalerImportRowShrink_SSE2() 141 accum -= x_sub; in RescalerImportRowShrink_SSE2() [all …]
|
A D | rescaler_mips32.c | 41 int accum, accum1; in ImportRowShrink_MIPS32() local 71 : [accum]"=&r"(accum), [src1]"+r"(src1), [temp3]"=&r"(temp3), in ImportRowShrink_MIPS32() 80 assert(accum == 0); in ImportRowShrink_MIPS32() 101 int accum; in ImportRowExpand_MIPS32() local 134 : [src1]"+r"(src1), [accum]"=&r"(accum), [temp1]"=&r"(temp1), in ImportRowExpand_MIPS32() 142 assert(wrk->x_sub == 0 /* <- special case for src_width=1 */ || accum == 0); in ImportRowExpand_MIPS32()
|
/AliOS-Things-master/components/SDL2/src/audio/sun/ |
A D | SDL_sunaudio.c | 111 int accum, incr, pos; in SUNAUDIO_PlayDevice() local 114 accum = 0; in SUNAUDIO_PlayDevice() 125 accum += incr; in SUNAUDIO_PlayDevice() 126 while (accum > 0) { in SUNAUDIO_PlayDevice() 127 accum -= 1000; in SUNAUDIO_PlayDevice() 141 accum += incr; in SUNAUDIO_PlayDevice() 142 while (accum > 0) { in SUNAUDIO_PlayDevice() 143 accum -= 1000; in SUNAUDIO_PlayDevice()
|
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/enc/ |
A D | analysis_enc.c | 155 int accum[NUM_MB_SEGMENTS], dist_accum[NUM_MB_SEGMENTS]; in AssignSegments() local 178 accum[n] = 0; in AssignSegments() 191 accum[n] += alphas[a]; in AssignSegments() 200 if (accum[n]) { in AssignSegments() 201 const int new_center = (dist_accum[n] + accum[n] / 2) / accum[n]; in AssignSegments() 204 weighted_average += new_center * accum[n]; in AssignSegments() 205 total_weight += accum[n]; in AssignSegments()
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/kernels/internal/optimized/ |
A D | resize_bilinear.h | 785 uint16 accum[8]; in ResizeBilinear888Uint8() local 795 accum[c] = in ResizeBilinear888Uint8() 810 accum[c] += wdelta[c]; in ResizeBilinear888Uint8() 812 accum[c] >> 8; in ResizeBilinear888Uint8() 818 accum[c] += wdelta[c]; in ResizeBilinear888Uint8() 826 output_data[c] = accum[c] >> 8; in ResizeBilinear888Uint8() 1159 uint16 accum[8]; in ResizeBilinear888Uint8() local 1169 accum[c] = in ResizeBilinear888Uint8() 1184 accum[c] += wdelta[c]; in ResizeBilinear888Uint8() 1186 accum[c] >> 8; in ResizeBilinear888Uint8() [all …]
|
A D | optimized_ops.h | 684 int32 accum[4] = {0}; in ShuffledFullyConnectedWorkerImpl() 691 accum[i] += weights_val * input_val; in ShuffledFullyConnectedWorkerImpl() 697 int acc = accum[i] + bias_data[c + i]; in ShuffledFullyConnectedWorkerImpl() 726 int32 accum[4][4]; in ShuffledFullyConnectedWorkerImpl() 729 accum[i][b] = 0; in ShuffledFullyConnectedWorkerImpl() 738 accum[i][b] += weights_val * input_val; in ShuffledFullyConnectedWorkerImpl() 748 int acc = accum[i][b] + bias_data[c + i]; in ShuffledFullyConnectedWorkerImpl()
|
/AliOS-Things-master/components/SDL2/src/events/ |
A D | SDL_mouse.c | 306 GetScaledMouseDelta(float scale, int value, float *accum) argument 309 *accum += scale * value; 310 if (*accum >= 0.0f) { 311 value = (int)SDL_floor(*accum); 313 value = (int)SDL_ceil(*accum); 315 *accum -= value;
|
/AliOS-Things-master/components/amp/engine/duktape_engine/duktape/ |
A D | duktape.c | 37656 duk_int_t accum = 0; in duk__parse_string_iso8601_subset() local 37693 accum = accum * 10 + ((duk_int_t) ch) - ((duk_int_t) DUK_ASC_0) + 0x00; in duk__parse_string_iso8601_subset() 37706 accum *= 10; in duk__parse_string_iso8601_subset() 37710 parts[part_idx] = accum; in duk__parse_string_iso8601_subset() 37711 DUK_DDD(DUK_DDDPRINT("wrote part %ld -> value %ld", (long) part_idx, (long) accum)); in duk__parse_string_iso8601_subset() 37713 accum = 0; in duk__parse_string_iso8601_subset()
|