Skip to content

Commit

Permalink
【Error Message No. 23 24】remove unuse check (PaddlePaddle#66443)
Browse files Browse the repository at this point in the history
* remove unuse check

* fix codestyle
  • Loading branch information
uanu2002 authored and lixcli committed Aug 5, 2024
1 parent 99f9d0f commit 20b71ae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion paddle/cinn/ir/ir_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,6 @@ struct BinaryOpNode : public ExprNode<T> {
operands().resize(2);
this->a() = a;
this->b() = b;
// CHECK_EQ(a.type(), b.type()) << "the type of two argument not match";
}

Expr& a() { return ExprNode<T>::operand(0); }
Expand Down
5 changes: 1 addition & 4 deletions paddle/cinn/lang/compute.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ ir::Tensor Compute(const std::vector<Expr> &domain,
const std::vector<Expr> &shape) {
return Compute(
domain,
[fn](const std::vector<Expr> &axis) -> Expr {
// CHECK_EQ(axis.size(), 0);
return fn();
},
[fn](const std::vector<Expr> &axis) -> Expr { return fn(); },
name,
shape);
}
Expand Down

0 comments on commit 20b71ae

Please sign in to comment.