masahi commented on a change in pull request #5288: [BYOC] Refine DNNL Codegen URL: https://github.com/apache/incubator-tvm/pull/5288#discussion_r406502991
########## File path: src/relay/backend/contrib/dnnl/codegen.cc ########## @@ -53,12 +53,19 @@ class CodegenDNNL : public ExprVisitor, public CodegenCBase { } void VisitExpr_(const TupleGetItemNode* op) final { - // Do nothing + VisitExpr(op->tuple); + CHECK(out_.size() > static_cast<size_t>(op->index)); + + // Only keep the item we want for the child node. + // FIXME(@comaniac): The other items should still be requried for the primary outputs. Review comment: This looks ok to me, why "FIXME"? TupleGetItem only cares about one output. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services