yangulei commented on code in PR #12151:
URL: https://github.com/apache/tvm/pull/12151#discussion_r931740601
##########
src/runtime/contrib/dnnl/dnnl_json_runtime.cc:
##########
@@ -361,6 +367,10 @@ class DNNLJSONRuntime : public JSONRuntimeBase {
// TODO(@apeskov): Simulation of inplace primitive. just as PoC.
auto sum_in_tr = GetInputByName(nid, "sum_idx").TreatAs(dst_layout);
+ if (op_name.find("_sum") != std::string::npos) {
+ sum_in_tr = GetInput(nid, node.GetInputs().size()-1);
Review Comment:
```suggestion
sum_in_tr = GetInput(nid, node.GetInputs().size() - 1);
```
--
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]