Skip to content

Commit

Permalink
fix cinn_compile_test not pass problem (#37190)
Browse files Browse the repository at this point in the history
  • Loading branch information
thisjiang authored Nov 15, 2021
1 parent 59fdf4d commit 83eef6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion paddle/fluid/framework/paddle2cinn/cinn_compiler_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "";
Expand Down

0 comments on commit 83eef6d

Please sign in to comment.