[Rewriter] Support specifying node name in rewrites#2474
[Rewriter] Support specifying node name in rewrites#2474justinchuby merged 3 commits intomicrosoft:mainfrom
Conversation
|
Hi @justinchuby, @gramalingam , |
|
Thanks!
What are the other parameters? What would be the change to onnx ir? |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2474 +/- ##
==========================================
+ Coverage 70.36% 70.37% +0.01%
==========================================
Files 218 218
Lines 26412 26428 +16
Branches 2646 2646
==========================================
+ Hits 18584 18598 +14
- Misses 6922 6923 +1
- Partials 906 907 +1 ☔ View full report in Codecov by Sentry. |
overload: str = "",
graph: ir.Graph | None = None,
doc_string: str | None = None,
metadata_props: dict[str, str] | None = None,
output: ir.Value | None = None,I am not sure if
There is the same Builder class https://github.com/onnx/ir-py/blob/fced9bd53e7830d28d0100fb86342d3b578889ec/src/onnx_ir/_tape.py#L177 |
|
I see. The builder class in onnx-ir is not exposed yet. I want to reason about it's api and verify usage in onnxscript first. So far it's only used in the rewriter. (So no need to update onnx-ir for now) |
6eaa0b7 to
eaab5ab
Compare
Allows passing a node name when defining a rewrite.
eaab5ab to
be1776d
Compare
|
Thank you! |
Allows passing a node name when defining a rewrite. fixes #2435