Skip to content

Commit 713e864

Browse files
committed
bugfix ditu test
1 parent 63b38ca commit 713e864

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

paddle/fluid/inference/analysis/analyzer_tester.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ namespace paddle {
3434
namespace inference {
3535
namespace analysis {
3636

37-
using namespace framework;
37+
using namespace framework; // NOLINT
3838

3939
TEST(Analyzer, analysis_without_tensorrt) {
4040
FLAGS_IA_enable_tensorrt_subgraph_engine = false;
@@ -312,8 +312,8 @@ void TestDituRNNPrediction(const std::string &model_path,
312312
PADDLE_ENFORCE_GT(size, 0);
313313
float *data = static_cast<float *>(out.data.data());
314314
float *base_data = static_cast<float *>(base_out.data.data());
315-
for (size_t i = 0; i < size; i++) {
316-
EXPECT_NEAR(data[i], base_data[i], 1e-3);
315+
for (size_t j = 0; j < size; j++) {
316+
EXPECT_NEAR(data[j], base_data[j], 1e-3);
317317
}
318318
}
319319

0 commit comments

Comments
 (0)