/third_party/mindspore/mindspore/lite/micro/coder/wrapper/base/ |
D | detection_post_process_base_wrapper.c | 26 static inline bool compare(int i, int j, const float *scores) { in compare() argument 27 if (scores[i] == scores[j]) { in compare() 30 return scores[i] > scores[j]; in compare() 33 static void heapify(const float *scores, int *indexes, int n, int i) { in heapify() argument 38 if (r < n && compare(indexes[cur], indexes[r], scores)) { in heapify() 41 if (l < n && compare(indexes[cur], indexes[l], scores)) { in heapify() 53 void PartialArgSort(const float *scores, int *indexes, int num_to_sort, int num_values) { in PartialArgSort() argument 57 heapify(scores, indexes, num_to_sort, i); in PartialArgSort() 61 if (!compare(indexes[0], indexes[i], scores)) { in PartialArgSort() 63 heapify(scores, indexes, num_to_sort, 0); in PartialArgSort() [all …]
|
D | detection_post_process_base_wrapper.h | 22 void PartialArgSort(const float *scores, int *indexes, int num_to_sort, int num_values);
|
/third_party/mesa3d/src/gallium/frontends/wgl/ |
D | stw_ext_pixelformat.c | 335 struct stw_pixelformat_score *scores, in score_pixelformats() argument 370 scores[index].points = 0; in score_pixelformats() 380 scores[index].points = 0; in score_pixelformats() 382 scores[index].points -= (actual_value - expected_value) in score_pixelformats() 397 struct stw_pixelformat_score *scores; in wglChoosePixelFormatARB() local 408 scores = (struct stw_pixelformat_score *) in wglChoosePixelFormatARB() 410 if (scores == NULL) in wglChoosePixelFormatARB() 413 scores[i].points = 0x7fffffff; in wglChoosePixelFormatARB() 414 scores[i].index = i; in wglChoosePixelFormatARB() 421 if (!score_pixelformats(hdc, scores, count, piAttribIList[0], in wglChoosePixelFormatARB() [all …]
|
/third_party/flutter/skia/third_party/externals/angle2/scripts/ |
D | perf_test_runner.py | 30 scores = [] variable 140 scores.append(score) 142 if (len(scores) > 1): 143 sys.stdout.write(", mean: %.2f" % mean(scores)) 144 sys.stdout.write(", variation: %.2f%%" % (coefficient_of_variation(scores) * 100.0)) 146 if (len(scores) > 7): 147 truncation_n = len(scores) >> 3 148 sys.stdout.write(", truncated mean: %.2f" % truncated_mean(scores, truncation_n)) 149 sys.stdout.write(", variation: %.2f%%" % (truncated_cov(scores, truncation_n) * 100.0))
|
/third_party/skia/third_party/externals/dawn/scripts/ |
D | perf_test_runner.py | 37 scores = [] variable 141 scores.append(score) 143 if (len(scores) > 1): 144 sys.stdout.write(", mean: %.2f" % mean(scores)) 146 (coefficient_of_variation(scores) * 100.0)) 148 if (len(scores) > 7): 149 truncation_n = len(scores) >> 3 151 truncated_mean(scores, truncation_n)) 153 (truncated_cov(scores, truncation_n) * 100.0))
|
/third_party/mindspore/mindspore/lite/micro/coder/opcoders/nnacl/int8/ |
D | detection_post_process_int8_coder.cc | 40 Tensor *scores = input_tensors_.at(1); in GetInputData() local 41 MS_CHECK_PTR(scores); in GetInputData() 42 lite::LiteQuantParam scores_quant_param = scores->quant_params().front(); in GetInputData() 44 MS_CHECK_TRUE(scores->data_type() == kNumberTypeInt8, "Input data type error"); in GetInputData() 55 code->CodeFunction("DoDequantizeInt8ToFp32", scores, input_scores_, scores_quant_param.scale, in GetInputData() 56 scores_quant_param.zeroPoint, scores->ElementsNum()); in GetInputData()
|
/third_party/skia/third_party/externals/angle2/scripts/ |
D | perf_test_runner.py | 38 scores = [] variable 165 scores.append(score) 167 if (len(scores) > 1): 168 sys.stdout.write(", mean: %.2f" % mean(scores)) 170 (coefficient_of_variation(scores) * 100.0)) 172 if (len(scores) > 7): 173 truncation_n = len(scores) >> 3 174 sys.stdout.write(", truncated mean: %.2f" % truncated_mean(scores, truncation_n)) 176 (truncated_cov(scores, truncation_n) * 100.0))
|
/third_party/mindspore/mindspore/lite/java/java/fl_client/src/main/java/com/mindspore/flclient/model/ |
D | TrainModel.java | 180 float[] scores = outputTensor.get().getFloatData(); in calAccuracy() local 187 int predictIdx = getPredictLabel(scores, numOfClass * b, numOfClass * b + numOfClass); in calAccuracy() 206 float[] scores = outputTensor.get().getFloatData(); in getBatchLabel() local 208 inferLabels[b] = getPredictLabel(scores, numOfClass * b, numOfClass * b + numOfClass); in getBatchLabel() 267 private int getPredictLabel(float[] scores, int start, int end) { in getPredictLabel() argument 268 if (scores == null || scores.length == 0) { in getPredictLabel() 272 if (start >= scores.length || start < 0 || end > scores.length || end < 0) { in getPredictLabel() 276 float maxScore = scores[start]; in getPredictLabel() 279 if (scores[i] > maxScore) { in getPredictLabel() 281 maxScore = scores[i]; in getPredictLabel()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/ |
D | detection_post_process_fp32.c | 66 …ass(const int num_boxes, const float *decoded_boxes, const int max_detections, const float *scores, in NmsSingleClass() argument 81 PartialArgSort(scores, indexes, num_boxes, num_boxes); in NmsSingleClass() 83 …if (possible_candidate_num == 0 || selected_num >= output_num || scores[indexes[i]] < param->nms_s… in NmsSingleClass() 94 if (scores[indexes[t]] < param->nms_score_threshold_) break; in NmsSingleClass() 120 float *scores = (float *)param->scores_; in NmsMultiClassesFastCore() local 127 scores[i] = input_scores[indexes[0]]; in NmsMultiClassesFastCore() 181 float *scores = (float *)param->scores_; in DetectionPostProcessRegular() local 190 scores[i] = input_scores[i * num_classes_with_bg + j]; in DetectionPostProcessRegular() 193 …NmsSingleClass(num_boxes, decoded_boxes, param->detections_per_class_, scores, selected, PartialAr… in DetectionPostProcessRegular() 202 all_scores[all_classes_sorted_num++] = scores[selected[i]]; in DetectionPostProcessRegular() [all …]
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/ |
D | detection_post_process_infer.c | 28 const TensorC *scores = inputs[1]; in DetectionPostProcessInferShape() local 30 if (boxes->shape_size_ < 2 || scores->shape_size_ < 3 || anchors->shape_size_ < 1) { in DetectionPostProcessInferShape() 35 if (scores->shape_[2] < param->num_classes_) { in DetectionPostProcessInferShape() 38 if (scores->shape_[2] - param->num_classes_ > 1) { in DetectionPostProcessInferShape() 41 if (boxes->shape_[1] != scores->shape_[1]) { in DetectionPostProcessInferShape()
|
/third_party/ffmpeg/libavfilter/ |
D | vf_identity.c | 51 uint64_t **scores; member 189 td.score = s->scores; in do_identity() 203 comp_sum[c] += s->scores[j][c]; in do_identity() 295 s->scores = av_calloc(s->nb_threads, sizeof(*s->scores)); in config_input_ref() 296 if (!s->scores) in config_input_ref() 299 for (int t = 0; t < s->nb_threads && s->scores; t++) { in config_input_ref() 300 s->scores[t] = av_calloc(s->nb_components, sizeof(*s->scores[0])); in config_input_ref() 301 if (!s->scores[t]) in config_input_ref() 381 for (int t = 0; t < s->nb_threads && s->scores; t++) in uninit() 382 av_freep(&s->scores[t]); in uninit() [all …]
|
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/base/ |
D | detection_post_process_base.cc | 32 void PartialArgSort(const float *scores, int *indexes, int num_to_sort, int num_values) { in PartialArgSort() argument 33 …std::partial_sort(indexes, indexes + num_to_sort, indexes + num_values, [&scores](const int i, con… in PartialArgSort() 34 if (std::abs(scores[i] - scores[j]) < FLT_EPSILON) { in PartialArgSort() 37 return scores[i] > scores[j]; in PartialArgSort()
|
/third_party/skia/experimental/tools/ |
D | pdf-comparison.py | 296 scores = dict() 303 scores[path] = s 305 paths = sorted(scores.iterkeys(), key=lambda p: -scores[p]) 309 out.write(' %6.4f %s\n' % (scores[p], pdfpath)) 318 errors.append((source, name, scores[p]))
|
/third_party/mindspore/tests/st/fl/cross_silo_faster_rcnn/src/FasterRcnn/ |
D | proposal_generator.py | 188 _, _, _, _, scores = self.split(proposals) 189 scores = self.squeeze(scores) 191 scores_using = self.select(masks, scores, topk_mask)
|
D | faster_rcnn_resnet50v1.py | 351 scores = self.softmax(cls_logits) 361 scores_all = self.split(scores) 389 scores = scores_all[i] 398 _cls_scores = scores[::, k:k + 1:1]
|
D | faster_rcnn_resnet.py | 351 scores = self.softmax(cls_logits) 361 scores_all = self.split(scores) 389 scores = scores_all[i] 398 _cls_scores = scores[::, k:k + 1:1]
|
/third_party/mindspore/mindspore/lite/examples/train_lenet_java/src/main/java/com/mindspore/lite/train_lenet/ |
D | NetRunner.java | 155 float[] scores = outputsv.getFloatData(); in calculateAccuracy() local 158 float max_score = scores[(int) (numOfClasses * b)]; in calculateAccuracy() 160 if (scores[(int) (numOfClasses * b + c)] > max_score) { in calculateAccuracy() 161 max_score = scores[(int) (numOfClasses * b + c)]; in calculateAccuracy()
|
/third_party/mindspore/mindspore/nn/metrics/ |
D | occlusion_sensitivity.py | 122 scores = model_numpy[first_indices, batch_ids] 124 return np.vstack(scores) 125 return np.vstack((sensitivity_im, scores))
|
/third_party/flutter/skia/third_party/externals/freetype/src/autofit/ |
D | afwarp.c | 83 AF_WarpScore scores[65]; in af_warper_compute_line_best() local 87 scores[nn] = 0; in af_warper_compute_line_best() 129 scores[idx] += af_warper_weights[y & 63] * len; in af_warper_compute_line_best() 139 AF_WarpScore score = scores[idx]; in af_warper_compute_line_best()
|
/third_party/freetype/src/autofit/ |
D | afwarp.c | 83 AF_WarpScore scores[65]; in af_warper_compute_line_best() local 87 scores[nn] = 0; in af_warper_compute_line_best() 129 scores[idx] += af_warper_weights[y & 63] * len; in af_warper_compute_line_best() 139 AF_WarpScore score = scores[idx]; in af_warper_compute_line_best()
|
/third_party/mindspore/mindspore/lite/examples/transfer_learning/src/ |
D | net_runner.cc | 144 auto scores = reinterpret_cast<float *>(outputsv->MutableData()); in CalculateAccuracy() local 147 float max_score = scores[num_of_classes_ * b]; in CalculateAccuracy() 149 if (scores[num_of_classes_ * b + c] > max_score) { in CalculateAccuracy() 150 max_score = scores[num_of_classes_ * b + c]; in CalculateAccuracy()
|
/third_party/mindspore/tests/ut/cpp/ops/ |
D | test_ops_detection_post_process.cc | 38 …auto scores = TensorConstructUtils::CreateOnesTensor(kNumberTypeFloat16, std::vector<int64_t>{2, 3… in TEST_F() local 40 auto abstract = op->Infer({boxes->ToAbstract(), scores->ToAbstract(), anchors->ToAbstract()}); in TEST_F()
|
/third_party/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/sbcs/ |
D | StatisticsTool.java | 409 int[] scores = new int[file_count]; in main() local 413 scores[c] = checkers[c].checkBuffer(buffer, charCount); in main() 417 int score = scores[c]; in main()
|
/third_party/gstreamer/gstplugins_bad/ext/onnx/ |
D | gstonnxclient.cpp | 381 auto scores = in doRun() local 395 if (scores[i] > scoreThreshold) { in doRun() 400 auto score = scores[i]; in doRun()
|
/third_party/mindspore/mindspore/core/ops/ |
D | detection_post_process.cc | 126 auto scores = input_args[kInputIndex1]; in DetectionPostProcessInfer() local 129 auto scores_shape = CheckAndConvertUtils::ConvertShapePtrToShapeMap(scores->BuildShape())[kShape]; in DetectionPostProcessInfer()
|