Home
last modified time | relevance | path

Searched refs:latest_results (Results 1 – 5 of 5) sorted by relevance

/external/tensorflow/tensorflow/lite/micro/examples/micro_speech/
Drecognize_commands.cc36 const TfLiteTensor* latest_results, const int32_t current_time_ms, in ProcessLatestResults() argument
38 if ((latest_results->dims->size != 2) || in ProcessLatestResults()
39 (latest_results->dims->data[0] != 1) || in ProcessLatestResults()
40 (latest_results->dims->data[1] != kCategoryCount)) { in ProcessLatestResults()
45 kCategoryCount, latest_results->dims->data[1], in ProcessLatestResults()
46 latest_results->dims->size); in ProcessLatestResults()
50 if (latest_results->type != kTfLiteInt8) { in ProcessLatestResults()
54 latest_results->type); in ProcessLatestResults()
69 previous_results_.push_back({current_time_ms, latest_results->data.int8}); in ProcessLatestResults()
Drecognize_commands.h140 TfLiteStatus ProcessLatestResults(const TfLiteTensor* latest_results,
/external/tensorflow/tensorflow/examples/speech_commands/
Drecognize_commands.cc34 Status RecognizeCommands::ProcessLatestResults(const Tensor& latest_results, in ProcessLatestResults() argument
39 if (latest_results.NumElements() != labels_count_) { in ProcessLatestResults()
42 " elements, but there are ", latest_results.NumElements()); in ProcessLatestResults()
55 previous_results_.push_back({current_time_ms, latest_results}); in ProcessLatestResults()
Drecognize_commands.py106 def process_latest_result(self, latest_results, current_time_ms, argument
125 if latest_results.shape[0] != self._label_count:
128 self._label_count, latest_results.shape[0]))
137 self._previous_results.append([current_time_ms, latest_results])
Drecognize_commands.h57 Status ProcessLatestResults(const Tensor& latest_results,