Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

【Error Message No. 23 24】remove unuse check #66443

Merged
merged 2 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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