Skip to content

Commit 99d00cc

Browse files
committed
follow comment: refine where time started
1 parent 38f8182 commit 99d00cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/fluid/inference/tests/book/test_inference_nlp.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,12 @@ TEST(inference, nlp) {
185185
std::vector<std::vector<const paddle::framework::LoDTensor*>> jobs;
186186
SplitData(datasets, &jobs, FLAGS_num_threads);
187187
std::vector<std::unique_ptr<std::thread>> threads;
188+
start_ms = GetCurrentMs();
188189
for (int i = 0; i < FLAGS_num_threads; ++i) {
189190
threads.emplace_back(
190191
new std::thread(ThreadRunInfer, i, &executor, scope.get(),
191192
std::ref(inference_program), std::ref(jobs)));
192193
}
193-
start_ms = GetCurrentMs();
194194
for (int i = 0; i < FLAGS_num_threads; ++i) {
195195
threads[i]->join();
196196
}

0 commit comments

Comments
 (0)