You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/06/17 09:23:38 UTC
[GitHub] [tvm] apeskov commented on a diff in pull request #11642: Enable QNN primitives for DNNL runtime
apeskov commented on code in PR #11642:
URL: https://github.com/apache/tvm/pull/11642#discussion_r899940473
##########
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:
definitely a typo. Fixed.
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org