Skip to content

Commit

Permalink
fix compiler bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangbo9674 committed May 25, 2023
1 parent b45207d commit 1001c7f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/cpp/ir/ir_program_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ TEST(program_test, slice_combine_test) {
// (2) Create an empty program object
ir::Program program;
// ir::Program *program = new ir::Program();
EXPECT_EQ(program.ops().size() == 0, true);
EXPECT_EQ(program.block()->size() == 0, true);

// (3) Create a float32 DenseTensor Parameter and save into Program
ir::Type fp32_dtype = ir::Float32Type::get(ctx);
Expand Down Expand Up @@ -266,6 +266,5 @@ TEST(program_test, slice_combine_test) {
program.InsertOp(slice_op);

// (8) Traverse Program
std::list<ir::Operation *> ops = program.ops();
EXPECT_EQ(ops.size() == 4, true);
EXPECT_EQ(program.block()->size() == 4, true);
}

0 comments on commit 1001c7f

Please sign in to comment.