masahi commented on code in PR #11642:
URL: https://github.com/apache/tvm/pull/11642#discussion_r899773223
##########
src/relay/backend/contrib/dnnl/codegen.cc:
##########
@@ -511,22 +541,33 @@ class DNNLJSONSerializer : public
backend::contrib::JSONSerializer {
} else if (name.find("dnnl.dense") != std::string::npos) {
call = GetRootCall(fn->body.as<CallNode>(), 10, "nn.dense");
ICHECK(call->op.as<OpNode>()) << "Not op node";
+ } else if (name.find("dnnl.qnn.conv2d") != std::string::npos ||
+ name.find("dnnl.qnn.dense") != std::string::npos) {
+ std::vector<Expr> args_loc;
+ call = ParseComposite(*fn, &extra_attrs, &args_loc);
+ args = BindToCallNodeArgs(args_loc, cn);
} else {
LOG(FATAL) << "Unrecognized DNNL pattern: " << name;
}
+
+ if (args.empty() && args.empty()) {
Review Comment:
yeah let's quickly fix this
--
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]