提交 7eebb905 编写于 作者: T tensor-tang

fix conflicts

上级 3c3ad1e4
......@@ -192,7 +192,7 @@ void TestLACPrediction(const std::string &model_path,
sum += timer.toc();
}
}
PrintTime(sum, batch_size, repeat);
PrintTime(batch_size, repeat, 1, 0, sum / batch_size);
return;
}
timer.tic();
......
......@@ -124,9 +124,11 @@ std::string DescribeTensor(const PaddleTensor &tensor) {
void PrintTime(int batch_size, int repeat, int num_threads, int tid,
double latency) {
LOG(INFO) << "=====================================";
LOG(INFO) << "batch_size: " << batch_size << ", repeat: " << repeat
<< ", threads: " << num_threads << ", thread id: " << tid
<< ", latency: " << latency << "ms";
LOG(INFO) << "=====================================";
}
} // namespace inference
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册