vinx13 commented on code in PR #16598:
URL: https://github.com/apache/tvm/pull/16598#discussion_r1496719908
##########
src/relax/transform/fuse_ops.cc:
##########
@@ -1238,10 +1238,14 @@ class CompositeFunctionAnnotator : public ExprMutator {
Expr VisitExpr_(const FunctionNode* func_node) final {
Function f_inner = Downcast<Function>(ExprMutator::VisitExpr_(func_node));
- auto composite_name = func_node->GetAttr<String>(attr::kComposite);
+
+ if (!func_node->GetAttr<String>(attr::kComposite)) {
Review Comment:
Are non-composite functions visited?
https://github.com/apache/tvm/blob/76c1708018d2bdcf4d5a207100ff8682be6cf09d/src/relax/transform/fuse_ops.cc#L1224
here we only visit composite functions
--
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]