-
Notifications
You must be signed in to change notification settings - Fork 71
[docs] Document rewriter pattern options #2406
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: justinchuby <[email protected]>
❌ 3 Tests Failed:
View the top 3 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lintrunner found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
Co-authored-by: gramalingam <[email protected]>
…ption example Co-authored-by: gramalingam <[email protected]>
Co-authored-by: gramalingam <[email protected]>
The Lint / Enforce style CI is failing due to some white space issues. Can you fix them? |
Co-authored-by: gramalingam <[email protected]>
Fixed the whitespace issues by removing trailing whitespace and adding final newlines to all affected files. Commit 12f0fea. |
@script() | ||
def original_model(A: FLOAT[4, 4]) -> FLOAT[2, 4]: | ||
# Split operation that produces 2 outputs | ||
result1, result2 = opset18.Split(A, num_outputs=2, axis=0) |
Check warning
Code scanning / lintrunner
PYLINT/W0612 Warning documentation
See unused-variable. To disable, use # pylint: disable=unused-variable
@script() | ||
def original_model(A: FLOAT[4, 4]) -> FLOAT[2, 4]: | ||
# Split operation that produces 2 outputs | ||
result1, result2 = opset18.Split(A, num_outputs=2, axis=0) |
Check warning
Code scanning / lintrunner
RUFF/RUF059 Warning documentation
See https://docs.astral.sh/ruff/rules/unused-unpacked-variable
Please run |
Co-authored-by: justinchuby <[email protected]>
Fixed the linting issues by running |
This PR adds comprehensive documentation for the rewriter pattern options that were previously undocumented. The rewriter pattern system supports four key options for controlling pattern matching and replacement behavior:
New Documentation Added
_allow_other_inputs
optiondocs/tutorial/rewriter/allow_other_inputs.md
False
(exact input matching)Conv
operations that may have optional bias inputs_domain
optiondocs/tutorial/rewriter/domain_option.md
_outputs
optiondocs/tutorial/rewriter/outputs_option.md
_outputs=2
) or named list (_outputs=["first", "second"]
)Split
Enhanced
_allow_other_attributes
documentationdocs/tutorial/rewriter/attributes.md
(improved formatting)True
(allows extra attributes)Documentation Structure Improvements
The documentation now provides complete coverage of all rewriter pattern options with practical examples showing real-world usage patterns.
Fixes #2405.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
docs.python.org
python -m sphinx docs dist/html -W -q
(dns block)python -m sphinx docs dist/html -q -E -j 1
(dns block)docs.scipy.org
python -m sphinx docs dist/html -W -q
(dns block)python -m sphinx docs dist/html -q -E -j 1
(dns block)matplotlib.org
python -m sphinx docs dist/html -W -q
(dns block)python -m sphinx docs dist/html -q -E -j 1
(dns block)numpy.org
python -m sphinx docs dist/html -W -q
(dns block)python -m sphinx docs dist/html -q -E -j 1
(dns block)onnx.ai
python -m sphinx docs dist/html -W -q
(dns block)python -m sphinx docs dist/html -q -E -j 1
(dns block)onnxruntime.ai
python -m sphinx docs dist/html -W -q
(dns block)python -m sphinx docs dist/html -q -E -j 1
(dns block)pytorch.org
python -m sphinx docs dist/html -W -q
(dns block)python -m sphinx docs dist/html -q -E -j 1
(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.