Home
last modified time | relevance | path

Searched refs:current_time_ms (Results 1 – 9 of 9) sorted by relevance

/AliOS-Things-master/solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/
A Drecognize_commands.cc35 const int64 current_time_ms, in ProcessLatestResults() argument
46 (current_time_ms < previous_results_.front().first)) { in ProcessLatestResults()
50 current_time_ms, " that was earlier than the previous one of ", in ProcessLatestResults()
55 previous_results_.push_back({current_time_ms, latest_results}); in ProcessLatestResults()
58 const int64 time_limit = current_time_ms - average_window_duration_ms_; in ProcessLatestResults()
67 const int64 samples_duration = current_time_ms - earliest_time; in ProcessLatestResults()
110 time_since_last_top = current_time_ms - previous_top_label_time_; in ProcessLatestResults()
116 previous_top_label_time_ = current_time_ms; in ProcessLatestResults()
A Drecognize_commands.py106 def process_latest_result(self, latest_results, current_time_ms, argument
130 current_time_ms < self._previous_results[0][0]):
134 current_time_ms, self._previous_results[0][0]))
137 self._previous_results.append([current_time_ms, latest_results])
140 time_limit = current_time_ms - self._average_window_duration_ms
147 sample_duration = current_time_ms - earliest_time
178 time_since_last_top = current_time_ms - self._previous_top_time
183 self._previous_top_time = current_time_ms
A Drecognize_commands_test.cc50 int64 current_time_ms = 0 + (i * 100); in TEST() local
52 results, current_time_ms, &found_command, &score, &is_new_command)); in TEST()
69 int64 current_time_ms = 1000 + (i * 100); in TEST() local
71 results, current_time_ms, &found_command, &score, &is_new_command)); in TEST()
A Dtest_streaming_accuracy.py155 current_time_ms = int(audio_data_offset * 1000 / sample_rate)
157 recognize_commands.process_latest_result(outputs, current_time_ms,
165 [recognize_element.founded_command, current_time_ms])
167 stats.calculate_accuracy_stats(all_found_words, current_time_ms,
176 current_time_ms, recognize_element.founded_command,
A Dtest_streaming_accuracy.cc264 const int64 current_time_ms = (audio_data_offset * 1000) / sample_rate; in main() local
269 outputs[0], current_time_ms, &found_command, &score, &is_new_command); in main()
276 all_found_words.push_back({found_command, current_time_ms}); in main()
280 current_time_ms, time_tolerance_ms, in main()
298 LOG(INFO) << current_time_ms << "ms: " << found_command << ": " << score in main()
A Drecognize_commands.h58 const int64 current_time_ms,
/AliOS-Things-master/solutions/tflite_micro_speech_demo/micro_speech/
A Drecognize_commands.cc39 const TfLiteTensor* latest_results, const int32_t current_time_ms, in ProcessLatestResults() argument
62 (current_time_ms < previous_results_.front().time_)) { in ProcessLatestResults()
67 current_time_ms, previous_results_.front().time_); in ProcessLatestResults()
72 previous_results_.push_back({current_time_ms, latest_results->data.int8}); in ProcessLatestResults()
75 const int64_t time_limit = current_time_ms - average_window_duration_ms_; in ProcessLatestResults()
85 const int64_t samples_duration = current_time_ms - earliest_time; in ProcessLatestResults()
141 time_since_last_top = current_time_ms - previous_top_label_time_; in ProcessLatestResults()
150 previous_top_label_time_ = current_time_ms; in ProcessLatestResults()
A Drecognize_commands_test.cc108 int32_t current_time_ms = 0 + (i * 100); in TF_LITE_MICRO_TEST() local
111 &yes_results, current_time_ms, &found_command, &score, in TF_LITE_MICRO_TEST()
134 int32_t current_time_ms = 1000 + (i * 100); in TF_LITE_MICRO_TEST() local
137 &no_results, current_time_ms, &found_command, &score, in TF_LITE_MICRO_TEST()
A Drecognize_commands.h141 const int32_t current_time_ms,

Completed in 8 milliseconds