Skip to content

Conversation

@titaiwangms
Copy link
Contributor

Use IR and inplace

@codecov
Copy link

codecov bot commented Nov 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.05%. Comparing base (c1bfdfc) to head (977c10e).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2703   +/-   ##
=======================================
  Coverage   70.04%   70.05%           
=======================================
  Files         226      226           
  Lines       27177    27173    -4     
  Branches     2734     2734           
=======================================
- Hits        19036    19035    -1     
+ Misses       7197     7194    -3     
  Partials      944      944           

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

def replace_functions(
model: onnx.ModelProto, functions: Sequence[onnx.FunctionProto]
) -> onnx.ModelProto:
def replace_functions(irmodel: ir.Model, irfunctions: Sequence[ir.Function]) -> None:
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would suggest two functions: create a new one replace_functions_inplace, which is like this one (with IR inputs updated in-place), and update the existing replace_functions to call the inplace one in the middle ... some might need one or the other

@titaiwangms titaiwangms marked this pull request as draft November 12, 2025 21:08
@gramalingam
Copy link
Collaborator

See #2708

titaiwangms pushed a commit that referenced this pull request Nov 18, 2025
Redo #2703, thanks to Titai.

Signed-off-by: Ganesan Ramalingam <grama@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants