From 91408e3122de7d578ff69a3fa401e34297c21248 Mon Sep 17 00:00:00 2001 From: Tao Luo Date: Tue, 25 Dec 2018 11:13:28 +0800 Subject: [PATCH] fix analyzer_mm_dnn_tester fails when bs > 1 test=develop --- paddle/fluid/inference/tests/api/analyzer_mm_dnn_tester.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/inference/tests/api/analyzer_mm_dnn_tester.cc b/paddle/fluid/inference/tests/api/analyzer_mm_dnn_tester.cc index 858bc6d4ea..8aaab6d664 100644 --- a/paddle/fluid/inference/tests/api/analyzer_mm_dnn_tester.cc +++ b/paddle/fluid/inference/tests/api/analyzer_mm_dnn_tester.cc @@ -47,7 +47,7 @@ struct DataRecord { for (size_t j = 0; j < data.query_data_all.size(); j++) { // calculate lod data.lod1.push_back(data.lod1.back() + data.query_data_all[j].size()); - data.lod2.push_back(data.lod2.back() + data.query_data_all[j].size()); + data.lod2.push_back(data.lod2.back() + data.title_data_all[j].size()); } } batch_iter += batch_size; -- GitLab