Skip to content

Conversation

@gramalingam
Copy link
Collaborator

A utility and an example showing how onnxscript functions can be used to define function expansions and be used with the inliner to replace calls to the custom function with an expanded subgraph. This is useful to perform certain classes of graph surgery easily.

Copy link
Contributor

@titaiwangms titaiwangms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will merge this for now.

@titaiwangms titaiwangms enabled auto-merge (squash) November 12, 2025 18:15
@codecov
Copy link

codecov bot commented Nov 12, 2025

Codecov Report

❌ Patch coverage is 33.33333% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 70.04%. Comparing base (97513c7) to head (a98aaad).
⚠️ Report is 14 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
onnxscript/utils/replace.py 33.33% 10 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2701      +/-   ##
==========================================
- Coverage   70.06%   70.04%   -0.03%     
==========================================
  Files         225      226       +1     
  Lines       27162    27177      +15     
  Branches     2732     2734       +2     
==========================================
+ Hits        19031    19036       +5     
- Misses       7187     7197      +10     
  Partials      944      944              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@titaiwangms titaiwangms merged commit c1bfdfc into main Nov 12, 2025
32 of 33 checks passed
@titaiwangms titaiwangms deleted the rama/custom-op branch November 12, 2025 18:33
@justinchuby justinchuby added the topic: documentation Improvements or additions to documentation label Dec 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: documentation Improvements or additions to documentation

Projects

Development

Successfully merging this pull request may close these issues.

4 participants