zhiics opened a new pull request #4927: [Relay][Pass] Add inline pass URL: https://github.com/apache/incubator-tvm/pull/4927 This PR adds inlining pass to Relay. It can help external codegen where we may want to outline the sub-functions (subgraphs) to the module level to prevent the from being optimized by relay passes. These functions can then be inlined and offloaded to external codegen tools as discussed in #4864 This transformation is also important to the Relay VM as inlining may reduce the calling overhead. We currently only greedily inline the functions that are marked `inline` whenever it is abled to be inlined. There is no profitability analysis available for now. **This PR is dependent on the call graph PR #4922**
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
