diff --git a/paddle/cinn/frontend/net_builder.cc b/paddle/cinn/frontend/net_builder.cc index 6a059f8acec3f2f33efb62ce8afc88380cb88693..a661c4c745bcf8d211c6574a820a005d639a0c40 100644 --- a/paddle/cinn/frontend/net_builder.cc +++ b/paddle/cinn/frontend/net_builder.cc @@ -995,7 +995,6 @@ Variable NetBuilder::DropoutInfer(const Variable& a, Variable NetBuilder::Sum(const std::vector& inputs) { return CustomInstr("sum", inputs, {}).front(); - ; } Variable NetBuilder::Arange(const float start, @@ -1030,7 +1029,6 @@ Variable NetBuilder::Matmul(const Variable& x, {x, y}, {{"trans_a", trans_x}, {"trans_b", trans_y}, {"alpha", alpha}}) .front(); - ; } Variable NetBuilder::GaussianRandom(const std::vector& shape, diff --git a/paddle/cinn/frontend/op_mappers/paddle/concat.cc b/paddle/cinn/frontend/op_mappers/paddle/concat.cc index 48518898e7c33c25dabd4e84a1d5c1779a018d83..d3512176887f4ac8fee5151bc32c374a2454e640 100644 --- a/paddle/cinn/frontend/op_mappers/paddle/concat.cc +++ b/paddle/cinn/frontend/op_mappers/paddle/concat.cc @@ -122,7 +122,7 @@ void SplitOpMapper(const paddle::cpp::OpDesc& op_desc, const OpMapperContext& ctx) { CHECK_EQ(op_desc.Input("X").size(), 1UL); auto x_name = op_desc.Input("X").front(); - ; + CHECK_GE(op_desc.Output("Out").size(), 1UL); auto out_names = op_desc.Output("Out"); diff --git a/paddle/cinn/optim/ir_simplify.cc b/paddle/cinn/optim/ir_simplify.cc index cabe7ad0b01f9657e79b1e2a3d2f7d9e503d3245..a101482b64f7282ec229b55c039758ae93ff41a0 100644 --- a/paddle/cinn/optim/ir_simplify.cc +++ b/paddle/cinn/optim/ir_simplify.cc @@ -213,7 +213,7 @@ struct SimplifyRampMutator : public ir::IRMutator { << node->base << "is not a pure math!"; CHECK(common::IsPureMath(node->stride)) << node->stride << "is not a pure math!"; - ; + Simplify(&node->base); Simplify(&node->stride); }