slyubomirsky commented on code in PR #14183:
URL: https://github.com/apache/tvm/pull/14183#discussion_r1130144884
##########
src/relax/op/op.cc:
##########
@@ -65,6 +65,9 @@ StructInfo InferStructInfoCallTIR(const Call& call, const
BlockBuilder& ctx) {
ctx->ReportFatal(Diagnostic::Error(call)
<< "sinfo_args should have exact 1 output struct info.");
}
+ CHECK(call->args[0]->IsInstance<GlobalVarNode>())
+ << "call_tir expects the first argument as a GlobalVar referring tir
PrimFunc. "
Review Comment:
```suggestion
<< "call_tir expects the first argument to be a GlobalVar referring to
a TIR PrimFunc. "
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]