Skip to content

Commit 7eebb90

Browse files
committed
fix conflicts
1 parent 3c3ad1e commit 7eebb90

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

paddle/fluid/inference/analysis/analyzer_lac_tester.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ void TestLACPrediction(const std::string &model_path,
192192
sum += timer.toc();
193193
}
194194
}
195-
PrintTime(sum, batch_size, repeat);
195+
PrintTime(batch_size, repeat, 1, 0, sum / batch_size);
196196
return;
197197
}
198198
timer.tic();

paddle/fluid/inference/api/helper.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,11 @@ std::string DescribeTensor(const PaddleTensor &tensor) {
124124

125125
void PrintTime(int batch_size, int repeat, int num_threads, int tid,
126126
double latency) {
127+
LOG(INFO) << "=====================================";
127128
LOG(INFO) << "batch_size: " << batch_size << ", repeat: " << repeat
128129
<< ", threads: " << num_threads << ", thread id: " << tid
129130
<< ", latency: " << latency << "ms";
131+
LOG(INFO) << "=====================================";
130132
}
131133

132134
} // namespace inference

0 commit comments

Comments
 (0)