diff --git a/paddle/fluid/inference/api/analysis_predictor_tester.cc b/paddle/fluid/inference/api/analysis_predictor_tester.cc index 0c1ea3e3c7249c145a9dc2a68f7336c9d5339561..e990b2c7736ae51a1ac2ba2fd15362012288b9bb 100644 --- a/paddle/fluid/inference/api/analysis_predictor_tester.cc +++ b/paddle/fluid/inference/api/analysis_predictor_tester.cc @@ -71,9 +71,6 @@ TEST(AnalysisPredictor, analysis_on) { auto _predictor = CreatePaddlePredictor(config); auto* predictor = static_cast(_predictor.get()); - if (predictor->inference_program_->Version() == 0) { - ASSERT_FALSE(predictor->CheckOperatorCompatible()); - } ASSERT_TRUE(predictor->scope_); ASSERT_TRUE(predictor->sub_scope_); ASSERT_EQ(predictor->scope_->parent(), nullptr);