Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Update README.md for brief descriptions of optimizer and rewriter tools. #1702

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shubhambhokare1
Copy link
Contributor

@shubhambhokare1 shubhambhokare1 commented Jun 24, 2024

#TODO Add more details about function-based rewriting once tutorial for function-based rewriting is merged

@shubhambhokare1 shubhambhokare1 added documentation Improvements or additions to documentation topic: rewriter topic: optimizer labels Jun 24, 2024
Copy link

codecov bot commented Jun 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.75%. Comparing base (1aa7a70) to head (c2c08b6).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1702   +/-   ##
=======================================
  Coverage   75.75%   75.75%           
=======================================
  Files         240      240           
  Lines       25495    25495           
  Branches     4549     4549           
=======================================
  Hits        19313    19313           
  Misses       5281     5281           
  Partials      901      901           

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

@shubhambhokare1 shubhambhokare1 self-assigned this Jun 24, 2024
Copy link

Test Results

     30 files  ±0      30 suites  ±0   1h 7m 4s ⏱️ - 1m 52s
  8 247 tests ±0   5 633 ✅ +26    2 537 💤 ±0   77 ❌  - 26 
160 098 runs  ±0  55 746 ✅ +27  104 243 💤 ±0  109 ❌  - 27 

For more details on these failures, see this check.

Results for commit c2c08b6. ± Comparison against base commit 1aa7a70.

from onnxscript.rewriter import pattern

# Create multiple rules
rule1 = pattern.RewriteRule(
Copy link
Member

@xadupre xadupre Jun 24, 2024

Choose a reason for hiding this comment

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

You should include the code of both rewriting functions.


For a detailed summary of all the optimizations applied by the optimizer call, refer to the tutorial [Optimizing a Model using the Optimizer](https://onnxscript.ai/tutorial/optimizer/optimize.html)

### ONNX Rewriter
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should also have a short paragraph on ONNX IR

@@ -142,6 +142,56 @@ result = Hardmax(v)

More examples can be found in the [docs/examples](docs/examples) directory.

## ONNX Script Tools
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think updating the very first paragraph would also be helpful. Saying something like "The repo covers ONNXScript + IR/Optimizer/Rewriter", expanded into a couple of sentences

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation topic: optimizer topic: rewriter
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants