Home
last modified time | relevance | path

Searched refs:sum (Results 1 – 25 of 94) sorted by relevance

1234

/packages/modules/NeuralNetworks/common/operations/
DGroupedConv2D.cpp70 float sum = 0.0f; in groupedConvFloat32() local
83 sum += filterBase[filterIndex] * inputBase[inputIndex]; in groupedConvFloat32()
88 sum += biasData[g * outputGroupDepth + d]; in groupedConvFloat32()
89 sum = std::max(std::min(sum, output_activation_max), output_activation_min); in groupedConvFloat32()
90 outPtr[d] = sum; in groupedConvFloat32()
142 int32_t sum = 0.0f; in groupedConvQuant8() local
155 sum += (static_cast<int32_t>(filterBase[filterIndex]) + in groupedConvQuant8()
163 sum += biasData[g * outputGroupDepth + d]; in groupedConvQuant8()
164 sum = tflite::MultiplyByQuantizedMultiplier(sum, outputMultiplier, in groupedConvQuant8()
166 sum += outputOffset; in groupedConvQuant8()
[all …]
DL2Normalization.cpp61 float sum = 0.0f; in l2normFloat32Impl() local
64 sum += val * val; in l2normFloat32Impl()
66 float l2_norm = std::max(std::sqrt(sum), kEpsilon); in l2normFloat32Impl()
88 int32_t sum = 0; in l2normQuant8Impl() local
91 sum += val * val; in l2normQuant8Impl()
94 tflite::GetInvSqrtQuantizedMultiplierExp(sum, -1, &invMultiplier, &invShift); in l2normQuant8Impl()
120 int32_t sum = 0; in l2normQuant8SignedImpl() local
123 sum += val * val; in l2normQuant8SignedImpl()
126 tflite::GetInvSqrtQuantizedMultiplierExp(sum, -1, &invMultiplier, &invShift); in l2normQuant8SignedImpl()
/packages/services/Car/cpp/watchdog/server/src/
DProcDiskStats.cpp175 auto sum = [](const uint64_t& l, const uint64_t& r) -> uint64_t { in operator +=() local
180 numReadsCompleted = sum(numReadsCompleted, rhs.numReadsCompleted); in operator +=()
181 numReadsMerged = sum(numReadsMerged, rhs.numReadsMerged); in operator +=()
182 numKibRead = sum(numKibRead, rhs.numKibRead); in operator +=()
183 readTimeInMs = sum(readTimeInMs, rhs.readTimeInMs); in operator +=()
184 numWritesCompleted = sum(numWritesCompleted, rhs.numWritesCompleted); in operator +=()
185 numWritesMerged = sum(numWritesMerged, rhs.numWritesMerged); in operator +=()
186 numKibWritten = sum(numKibWritten, rhs.numKibWritten); in operator +=()
187 writeTimeInMs = sum(writeTimeInMs, rhs.writeTimeInMs); in operator +=()
188 totalIoTimeInMs = sum(totalIoTimeInMs, rhs.totalIoTimeInMs); in operator +=()
[all …]
/packages/modules/NeuralNetworks/runtime/test/specs/V1_3/
Dwhile_sum_of_powers.mod.py61 sum = Input("sum", DataType)
67 model.IdentifyInputs(sum, i, n, x)
73 sum = Input("sum", DataType)
85 model.IdentifyInputs(sum, i, n, x)
89 model.Operation("ADD", sum, xi, 0).To(sum_out)
95 sum = Output("sum", DataType)
100 model = Model().Operation("WHILE", cond, body, sum_init, i_init, n, x).To(sum)
105 sum: sum_data,
Dwhile_sum_of_powers_quant8.mod.py65 sum = Input("sum", DataType10)
71 model.IdentifyInputs(sum, i, n, x)
77 sum = Input("sum", DataType10)
90 model.IdentifyInputs(sum, i, n, x)
95 model.Operation("ADD", sum, xi, 0).To(sum_out)
101 sum = Output("sum", DataType10)
106 model = Model().Operation("WHILE", cond, body, sum_init, i_init, n, x).To(sum)
111 sum: quantize(sum_data, 1.0, 128),
Dwhile_sum_of_powers_quant8_signed.mod.py65 sum = Input("sum", DataType10)
71 model.IdentifyInputs(sum, i, n, x)
77 sum = Input("sum", DataType10)
90 model.IdentifyInputs(sum, i, n, x)
95 model.Operation("ADD", sum, xi, 0).To(sum_out)
101 sum = Output("sum", DataType10)
106 model = Model().Operation("WHILE", cond, body, sum_init, i_init, n, x).To(sum)
111 sum: quantize(sum_data, 1.0, 12),
/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/
DAnglesClassifier.java96 private float sum; field in AnglesClassifier.Data
112 sum = secondSum = 0.0f; in Data()
152 firstAngleVariance = getAnglesVariance(sumSquares, sum, count); in addPoint()
162 sum += difference; in addPoint()
170 public float getAnglesVariance(float sumSquares, float sum, float count) { in getAnglesVariance() argument
171 return sumSquares / count - (sum / count) * (sum / count); in getAnglesVariance()
175 float anglesVariance = getAnglesVariance(sumSquares, sum, count); in getAnglesVariance()
DSpeedAnglesClassifier.java86 private float sum; field in SpeedAnglesClassifier.Data
96 sum = 0.0f; in Data()
128 sum += difference; in addPoint()
137 return sumSquares / count - (sum / count) * (sum / count); in getAnglesVariance()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
DEmojiCategory.java314 int sum = 0; in getPageIdFromCategoryId() local
318 return sum + lastSavedCategoryPageId; in getPageIdFromCategoryId()
320 sum += props.mPageCount; in getPageIdFromCategoryId()
340 int sum = 0; in getCategoryIdAndPageIdFromPagePosition() local
342 final int temp = sum; in getCategoryIdAndPageIdFromPagePosition()
343 sum += properties.mPageCount; in getCategoryIdAndPageIdFromPagePosition()
344 if (sum > position) { in getCategoryIdAndPageIdFromPagePosition()
401 int sum = 0; in getTotalPageCountOfAllCategories() local
403 sum += properties.mPageCount; in getTotalPageCountOfAllCategories()
405 return sum; in getTotalPageCountOfAllCategories()
/packages/apps/Dialer/java/com/android/dialer/contactsfragment/
DContactsAdapter.java74 int sum = 0; in updateCursor() local
76 sum += count; in updateCursor()
79 if (sum != cursor.getCount()) { in updateCursor()
81 "ContactsAdapter", "Count sum (%d) != cursor count (%d).", sum, cursor.getCount()); in updateCursor()
214 int sum = 0; in getHeaderString() local
215 while (sum <= position) { in getHeaderString()
216 sum += counts[++index]; in getHeaderString()
/packages/services/Car/cpp/evs/manager/1.1/stats/
DCameraUsageStats.cpp66 it->second.sum += roundtrip; in updateFrameStatsOnReturn()
68 it->second.sum -= it->second.history.front(); in updateFrameStatsOnReturn()
161 int32_t sum = 0; in snapshot() local
165 sum += rec.sum; in snapshot()
173 mStats.framesAvgRoundtripLatency = (double)sum / len; in snapshot()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DKalmanFilterTest.java118 double sum = 0.0; in testPhaseLockedLoop() local
123 sum += residual[i]; in testPhaseLockedLoop()
127 double mean = sum / n; in testPhaseLockedLoop()
128 double variance = (sumSquares - sum * sum) / (n * n); in testPhaseLockedLoop()
/packages/services/Car/tools/perf/app-launch-test/
Dapp_launch_perf_test.sh34 local sum=0
42 sum=$(echo "scale=${SCALE};${sum} + ${val}" | bc)
45 mean=$(echo "scale=${SCALE};${sum} / ${count}" | bc)
/packages/modules/ExtServices/java/src/android/ext/services/storage/
DCacheQuotaServiceImpl.java92 double sum = getSumOfFairShares(flattenedRequests.size()); in onComputeCacheQuotaHints()
96 double share = getFairShareForPosition(count) / sum; in onComputeCacheQuotaHints()
115 double sum = 0; in getSumOfFairShares() local
117 sum += getFairShareForPosition(i); in getSumOfFairShares()
119 return sum; in getSumOfFairShares()
/packages/apps/Gallery2/jni/filters/
Dwbalance.c107 int sum = 0; in estmateWhiteBox() local
125 sum++; in estmateWhiteBox()
128 *wr = r/sum; in estmateWhiteBox()
129 *wg = g/sum; in estmateWhiteBox()
130 *wb = b/sum; in estmateWhiteBox()
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_feature_matching.h31 …reAlign_u(short *patch,const unsigned char * const *f_img,int x_f,int y_f,float *sum,float *recip);
32 …reAlign_u(short *patch,const unsigned char * const *f_img,int x_f,int y_f,float *sum,float *recip);
50 float sum; variable
77 float sum; variable
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/ranking/
DSuggestionRanker.java99 double sum = 0; in getRelevanceMetric() local
101 return sum; in getRelevanceMetric()
104 sum += WEIGHTS.get(feature) * features.get(feature); in getRelevanceMetric()
106 return sum; in getRelevanceMetric()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DDataManager.java284 long sum = 0; in getTotalUsedCacheSize() local
286 sum += source.getTotalUsedCacheSize(); in getTotalUsedCacheSize()
288 return sum; in getTotalUsedCacheSize()
294 long sum = 0; in getTotalTargetCacheSize() local
296 sum += source.getTotalTargetCacheSize(); in getTotalTargetCacheSize()
298 return sum; in getTotalTargetCacheSize()
/packages/services/Telephony/src/com/android/phone/
DEditPhoneNumberPreference.java167 CharSequence sum; in onBindView() local
173 sum = (mSummaryOn == null) ? getSummary() : mSummaryOn; in onBindView()
175 sum = (mSummaryOff == null) ? getSummary() : mSummaryOff; in onBindView()
178 sum = getSummary(); in onBindView()
181 if (sum != null) { in onBindView()
182 summaryView.setText(sum); in onBindView()
DCallBarringEditPreference.java139 CharSequence sum; in onBindView() local
144 sum = (mSummaryOn == null) ? getSummary() : mSummaryOn; in onBindView()
146 sum = (mSummaryOff == null) ? getSummary() : mSummaryOff; in onBindView()
149 if (sum != null) { in onBindView()
150 summaryView.setText(sum); in onBindView()
/packages/apps/TV/tests/tunerscripts/
Dmeasure-tuning-time.awk5 sum = 0;
12 sum += tune_time;
27 average = sum / n;
/packages/apps/Camera2/src/com/android/camera/util/
DCameraUtil.java885 float sum = 0; in getGaussianMask() local
892 sum += mask[i]; in getGaussianMask()
894 sum += mask[symmetricIndex]; in getGaussianMask()
899 mask[i] /= sum; in getGaussianMask()
947 int sum = 0; in blur() local
951 sum = addPixel(sum, src[rowPointer + dx], k[i]); in blur()
953 tmp[x + rowPointer] = sum; in blur()
963 int sum = 0; in blur() local
967 sum = addPixel(sum, tmp[dy * w + x], k[i]); in blur()
969 out[x + rowPointer] = sum; in blur()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DBlobCache.java218 int sum = readInt(buf, IH_CHECKSUM); in loadIndex() local
219 if (checkSum(buf, 0, IH_CHECKSUM) != sum) { in loadIndex()
399 int sum = checkSum(data); in insertInternal() local
401 writeInt(header, BH_CHECKSUM, sum); in insertInternal()
506 int sum = readInt(header, BH_CHECKSUM); in getBlob() local
528 if (checkSum(blob, 0, length) != sum) { in getBlob()
529 Log.w(TAG, "blob checksum does not match: " + sum); in getBlob()
/packages/apps/Test/connectivity/sl4n/rapidjson/test/perftest/
Dmisctest.cpp203 unsigned sum = 0;
205 sum += CountDecimalDigit_naive(i);
206 printf("%u\n", sum);
210 unsigned sum = 0;
212 sum += CountDecimalDigit_enroll4(i);
213 printf("%u\n", sum);
217 unsigned sum = 0;
219 sum += CountDecimalDigit_fast(i);
220 printf("%u\n", sum);
/packages/modules/NeuralNetworks/common/
DQuantUtils.cpp15 int64_t sum = 0; in ApplyLayerNorm() local
20 sum += val; in ApplyLayerNorm()
23 int32_t mean = static_cast<int32_t>(static_cast<int64_t>(sum) * 1024 / n_input); in ApplyLayerNorm()
143 int32_t sum = input_1[index] + input_2[index]; in CwiseAdd() local
144 const int32_t sum_clamped = std::min(INT16_MAX, std::max(INT16_MIN, sum)); in CwiseAdd()

1234