Thank you to Matt and the community for the work on the MergeComposite pass. RFC here: [RFC][External Codegen] Defining 'Composite' Relay operators
I would like to use the MergeComposite pass to fuse relay.vision.get_valid_counts and relay.vision.non_max_suppression for my TensorRT integration using Bring Your Own Codegen, however the op pattern contains two TupleGetItem nodes. The current implementation can only pattern match with Call nodes.
Therefore, I plan to extend MergeComposite to support pattern matching with TupleGetItemNode and TupleNode for now. Any thoughts? The change looks fairly straightforward to me.