From 20b71ae723f21e779519b9be7eee4ded57af294e Mon Sep 17 00:00:00 2001 From: Uanu <92366232+uanu2002@users.noreply.github.com> Date: Thu, 25 Jul 2024 15:24:21 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90Error=20Message=20No.=2023=2024?= =?UTF-8?q?=E3=80=91remove=20unuse=20check=20(#66443)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * remove unuse check * fix codestyle --- paddle/cinn/ir/ir_base.h | 1 - paddle/cinn/lang/compute.cc | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/paddle/cinn/ir/ir_base.h b/paddle/cinn/ir/ir_base.h index dcfc3dc9221ab9..9473142742129a 100644 --- a/paddle/cinn/ir/ir_base.h +++ b/paddle/cinn/ir/ir_base.h @@ -432,7 +432,6 @@ struct BinaryOpNode : public ExprNode { 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::operand(0); } diff --git a/paddle/cinn/lang/compute.cc b/paddle/cinn/lang/compute.cc index 946b87857f66fe..da0f9b3e80b025 100644 --- a/paddle/cinn/lang/compute.cc +++ b/paddle/cinn/lang/compute.cc @@ -32,10 +32,7 @@ ir::Tensor Compute(const std::vector &domain, const std::vector &shape) { return Compute( domain, - [fn](const std::vector &axis) -> Expr { - // CHECK_EQ(axis.size(), 0); - return fn(); - }, + [fn](const std::vector &axis) -> Expr { return fn(); }, name, shape); }