Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yongwww committed Mar 3, 2023
1 parent 93c7289 commit e53b0c1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/relax/op/op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ Expr MakeCallTIR(Expr func, Tuple args, Array<TensorStructInfo> out_sinfo_list,

TVM_REGISTER_GLOBAL("relax.op.call_tir").set_body_typed(MakeCallTIR);


// call_dps_packed

StructInfo InferStructInfoCallDPSPacked(const Call& call, const BlockBuilder& ctx) {
Expand All @@ -126,9 +125,10 @@ RELAY_REGISTER_OP("relax.call_dps_packed")
Expr MakeCallDPSPacked(Expr func, Tuple args, Array<TensorStructInfo> out_sinfo_list) {
for (const TensorStructInfo& sinfo : out_sinfo_list) {
const auto* shape = sinfo->shape.as<ShapeExprNode>();
CHECK(shape != nullptr) << "out_sinfo of call_dps_packed should have defined ShapeExpr as shape. "
"However, one given structure info is "
<< sinfo;
CHECK(shape != nullptr)
<< "out_sinfo of call_dps_packed should have defined ShapeExpr as shape. "
"However, one given structure info is "
<< sinfo;
}

StructInfo out_sinfo{nullptr};
Expand All @@ -144,7 +144,6 @@ Expr MakeCallDPSPacked(Expr func, Tuple args, Array<TensorStructInfo> out_sinfo_

TVM_REGISTER_GLOBAL("relax.op.call_dps_packed").set_body_typed(MakeCallDPSPacked);


// call builtin
StructInfo InferStructInfoCallBuiltinWithCtx(const Call& call, const BlockBuilder& ctx) {
if (call->sinfo_args.size() == 0) {
Expand Down

0 comments on commit e53b0c1

Please sign in to comment.