diff --git a/paddle/fluid/framework/paddle2cinn/cinn_compiler_test.cc b/paddle/fluid/framework/paddle2cinn/cinn_compiler_test.cc index 145d3d83d45099c7ef8331efd919d67a110a1c75..923607fe5aca6d96eab9abfd967dbf05501cd3f0 100644 --- a/paddle/fluid/framework/paddle2cinn/cinn_compiler_test.cc +++ b/paddle/fluid/framework/paddle2cinn/cinn_compiler_test.cc @@ -213,9 +213,10 @@ TEST(CinnCompilerTest, FlagController) { ASSERT_EQ(compilation_keys.size(), 1); const auto& compiling_graph = cinn_compiler->FindGraph(compilation_keys[0]); auto op_types = ExtractOpTypes(compiling_graph); - ASSERT_EQ(op_types.size(), 2); + ASSERT_EQ(op_types.size(), 3); ASSERT_EQ(op_types.count("feed"), 1); ASSERT_EQ(op_types.count("mul"), 1); + ASSERT_EQ(op_types.count("fetch"), 1); } // recover flags FLAGS_allow_cinn_ops = "";