/AliOS-Things-master/solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/ |
A D | label_wav.cc | 78 std::vector<std::pair<int, float>> scores; in GetTopLabels() local 79 scores.reserve(unsorted_scores_flat.size()); in GetTopLabels() 81 scores.push_back(std::pair<int, float>({i, unsorted_scores_flat(i)})); in GetTopLabels() 83 std::sort(scores.begin(), scores.end(), in GetTopLabels() 88 scores.resize(how_many_labels); in GetTopLabels() 91 for (int i = 0; i < scores.size(); ++i) { in GetTopLabels() 92 sorted_indices.flat<int>()(i) = scores[i].first; in GetTopLabels() 93 sorted_scores.flat<float>()(i) = scores[i].second; in GetTopLabels() 165 Tensor scores; in main() local 166 GetTopLabels(outputs, how_many_labels, &indices, &scores); in main() [all …]
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/experimental/kernels/ |
A D | ctc_decoder.h | 58 std::vector<Output>* output, ScoreOutput* scores) = 0; 80 CTCDecoder::ScoreOutput* scores) override { in Decode() argument 84 if (scores->rows() < batch_size_ || scores->cols() == 0) { in Decode() 94 (*scores)(b, 0) = 0; in Decode() 98 (*scores)(b, 0) += -row.maxCoeff(&max_class_ix); in Decode()
|
A D | ctc_beam_search.h | 103 CTCDecoder::ScoreOutput* scores) override; 160 std::vector<CTCDecoder::Output>* output, ScoreOutput* scores) { in Decode() argument 171 if (scores->rows() < batch_size_ || scores->cols() < top_n) { in Decode() 207 (*scores)(b, i) = -beam_log_probabilities[i]; in Decode()
|
/AliOS-Things-master/solutions/tflite_micro_speech_demo/micro_speech/ |
A D | recognize_commands.cc | 99 const int8_t* scores = previous_result.scores; in ProcessLatestResults() local 102 average_scores[i] = scores[i] + 128; in ProcessLatestResults() 104 average_scores[i] += scores[i] + 128; in ProcessLatestResults()
|
A D | recognize_commands.h | 39 Result() : time_(0), scores() {} in Result() 42 scores[i] = input_scores[i]; in Result() 46 int8_t scores[kCategoryCount]; member
|
A D | recognize_commands_test.cc | 61 int8_t scores[4] = {0, 0, 0, 1}; in TF_LITE_MICRO_TEST() local 62 queue.push_back({i, scores}); in TF_LITE_MICRO_TEST()
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/micro/kernels/ |
A D | detection_postprocess.cc | 405 const float* scores, int* selected, int* selected_size, in NonMaxSuppressionSingleClassHelper() argument 432 scores, num_boxes, non_max_suppression_score_threshold, keep_scores, in NonMaxSuppressionSingleClassHelper() 487 const float* scores) { in NonMaxSuppressionMultiClassRegularHelper() argument 620 const float* scores) { in NonMaxSuppressionMultiClassFastHelper() argument 653 scores + row * num_classes_with_background + label_offset; in NonMaxSuppressionMultiClassFastHelper() 707 float* scores, OpData* op_data) { in DequantizeClassPredictions() argument 716 scores[idx] = dequantize(scores_quant[idx]); in DequantizeClassPredictions() 739 const float* scores; in NonMaxSuppressionMultiClass() local 747 scores = temporary_scores; in NonMaxSuppressionMultiClass() 750 scores = tflite::micro::GetTensorData<float>(input_class_predictions); in NonMaxSuppressionMultiClass() [all …]
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/kernels/internal/reference/ |
A D | non_max_suppression.h | 88 const float* scores, const int max_output_size, in NonMaxSuppression() argument 108 if (scores[i] > score_threshold) { in NonMaxSuppression() 109 candidate_priority_queue.emplace(Candidate({i, scores[i], 0})); in NonMaxSuppression()
|
/AliOS-Things-master/components/py_engine/tests/ |
A D | run-perfbench.py | 118 scores = [] 132 scores.append(1e6 * norm / time) 144 s_avg, s_sd = compute_stats(scores) 152 print(" scores:", scores)
|
/AliOS-Things-master/components/freetype/src/autofit/ |
A 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() 130 scores[idx] += af_warper_weights[y & 63] * len; in af_warper_compute_line_best() 140 AF_WarpScore score = scores[idx]; in af_warper_compute_line_best()
|
A D | aflatin2.c | 2037 FT_Pos displacements[6], scores[6], org, fit, delta; in af_latin2_hint_edges() local 2072 scores[count++] = delta; in af_latin2_hint_edges() 2079 scores[count++] = delta; in af_latin2_hint_edges() 2089 scores[count++] = delta; in af_latin2_hint_edges() 2097 scores[count++] = delta; in af_latin2_hint_edges() 2102 FT_Pos best_score = scores[0]; in af_latin2_hint_edges() 2108 if ( scores[nn] < best_score ) in af_latin2_hint_edges() 2110 best_score = scores[nn]; in af_latin2_hint_edges()
|
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/objectdet/include/alibabacloud/objectdet/model/ |
A D | RecognizeVehicleDamageResult.h | 41 std::vector<std::string> scores; member
|
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/facebody/include/alibabacloud/facebody/model/ |
A D | RecognizeActionResult.h | 43 std::vector<std::string> scores; member
|
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/objectdet/src/model/ |
A D | RecognizeVehicleDamageResult.cc | 53 elementObject.scores.push_back(value.asString()); in parse()
|
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/facebody/src/model/ |
A D | RecognizeActionResult.cc | 60 elementObject.scores.push_back(value.asString()); in parse()
|