masahi commented on code in PR #16128:
URL: https://github.com/apache/tvm/pull/16128#discussion_r1396418947
##########
src/relax/transform/fuse_ops.cc:
##########
@@ -1102,6 +1106,13 @@ class PatternBasedPartitioner : ExprVisitor {
auto parent_group = GetGroupForBoundVar(binding->var);
ICHECK(parent_group);
parent_group->attrs.Set(attr::kComposite, pat_name_);
+ if (attrs_getter_ != nullptr) {
+ const auto& custom_attrs =
+ attrs_getter_(CreatePatternCheckContext(call,
matches_opt.value()));
Review Comment:
For example, I think you can recover the same information in the loop
```
for (const auto& [pat, match] : matches_opt.value()) {
```
using the `binding` argument to `VisitBinding_`.
--
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]