masahi commented on code in PR #16128:
URL: https://github.com/apache/tvm/pull/16128#discussion_r1396416905
##########
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:
Without seeing what `attrs_getter` does, it's hard to say if
`CreatePatternCheckContext` is a reasonable source to query attributes from.
That's why I'm asking for a test case.
--
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]