Home
last modified time | relevance | path

Searched refs:top_results (Results 1 – 10 of 10) sorted by relevance

/external/tensorflow/tensorflow/lite/examples/label_image/
Dlabel_image_test.cc47 std::vector<std::pair<float, int>> top_results; in TEST() local
48 get_top_n<uint8_t>(in, 10, 5, 0.025, &top_results, false); in TEST()
49 ASSERT_EQ(top_results.size(), 4); in TEST()
50 ASSERT_EQ(top_results[0].second, 8); in TEST()
Dget_top_n_impl.h31 float threshold, std::vector<std::pair<float, int>>* top_results, in get_top_n() argument
61 top_results->push_back(top_result_pq.top()); in get_top_n()
64 std::reverse(top_results->begin(), top_results->end()); in get_top_n()
Dlabel_image.cc219 std::vector<std::pair<float, int>> top_results; in RunInference() local
228 s->number_of_results, threshold, &top_results, true); in RunInference()
233 &top_results, false); in RunInference()
247 for (const auto& result : top_results) { in RunInference()
Dget_top_n.h26 float threshold, std::vector<std::pair<float, int>>* top_results,
/external/tensorflow/tensorflow/lite/examples/ios/simple/
DRunModelViewController.mm50 const float threshold, std::vector<std::pair<float, int> >* top_results) {
76 top_results->push_back(top_result_pq.top());
79 std::reverse(top_results->begin(), top_results->end());
188 std::vector<std::pair<float, int> > top_results;
189 GetTopN(output, output_size, kNumResults, kThreshold, &top_results);
193 for (const auto& result : top_results) {
/external/tensorflow/tensorflow/examples/ios/simple/
DRunModelViewController.mm70 std::vector<std::pair<float, int> >* top_results) {
96 top_results->push_back(top_result_pq.top());
99 std::reverse(top_results->begin(), top_results->end());
223 std::vector<std::pair<float, int> > top_results;
224 GetTopN(output->flat<float>(), kNumResults, kThreshold, &top_results);
228 for (const auto& result : top_results) {
/external/tensorflow/tensorflow/examples/ios/benchmark/
DBenchmarkViewController.mm72 std::vector<std::pair<float, int>>* top_results) {
98 top_results->push_back(top_result_pq.top());
101 std::reverse(top_results->begin(), top_results->end());
263 std::vector<std::pair<float, int>> top_results;
264 GetTopN(output->flat<float>(), kNumResults, kThreshold, &top_results);
268 for (const auto& result : top_results) {
/external/tensorflow/tensorflow/examples/ios/camera/
Dtensorflow_utils.mm53 std::vector<std::pair<float, int> >* top_results) {
80 top_results->push_back(top_result_pq.top());
83 std::reverse(top_results->begin(), top_results->end());
Dtensorflow_utils.h50 std::vector<std::pair<float, int> >* top_results);
/external/tensorflow/tensorflow/lite/examples/ios/camera/
DCameraExampleViewController.mm89 const float threshold, std::vector<std::pair<float, int> >* top_results) {
114 top_results->push_back(top_result_pq.top());
117 std::reverse(top_results->begin(), top_results->end());
354 std::vector<std::pair<float, int> > top_results;
364 GetTopN(output, output_size, kNumResults, kThreshold, &top_results);
367 GetTopN(output, output_size, kNumResults, kThreshold, &top_results);
371 for (const auto& result : top_results) {