Skip to content
This repository has been archived by the owner on Nov 25, 2023. It is now read-only.

Commit

Permalink
fix benchmark_model.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
ysh329 committed Sep 6, 2020
1 parent 1b2cd0d commit 52423da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tflite/benchmark_model.cc
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ void BenchmarkLoggingListener::OnBenchmarkEnd(const BenchmarkResults& results) {
auto init_mem_usage = results.init_mem_usage();
auto overall_mem_usage = results.overall_mem_usage();

std::cout << "time cost: min=" << inference_us.min() / 1000.
<< " max=" << inference_us.max() / 1000.
<< " avg=" << inference_us.avg() / 1000.
<< " std_dev=" << inference_us.std_deviation() / 1000.
std::cout << "time cost: min=" << inference_us.min() / 1000. << "ms"
<< " max=" << inference_us.max() / 1000. << "ms"
<< " avg=" << inference_us.avg() / 1000. << "ms"
<< " std_dev=" << inference_us.std_deviation() / 1000. << "ms"
<< std::endl;
TFLITE_LOG(INFO) << "Inference timings in us: "
<< "Init: " << init_us << ", "
Expand Down

0 comments on commit 52423da

Please sign in to comment.