Skip to content

Commit 12f0fea

Browse files
Copilotgramalingam
andcommitted
Fix whitespace issues in documentation files
Co-authored-by: gramalingam <[email protected]>
1 parent aaceba9 commit 12f0fea

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

docs/tutorial/rewriter/allow_other_inputs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This section demonstrates the use of the `_allow_other_inputs` option in pattern-based rewriting.
44
The `_allow_other_inputs` option allows the pattern to match nodes that have additional inputs
5-
beyond those specified in the pattern. If it is set to `False` (the default), then the node must
5+
beyond those specified in the pattern. If it is set to `False` (the default), then the node must
66
have exactly the specified inputs for a successful match. If set to `True`, the pattern will
77
match nodes that have the specified inputs plus any number of additional inputs.
88

@@ -22,6 +22,6 @@ This is particularly useful when matching operations like `Conv` that can have o
2222
```
2323

2424
In this example, the pattern matches `Conv` operations with any number of inputs. A `Conv` operation
25-
might have 2 inputs (input and weight) or 3 inputs (input, weight, and bias). By setting
25+
might have 2 inputs (input and weight) or 3 inputs (input, weight, and bias). By setting
2626
`_allow_other_inputs=True`, our pattern will match both cases even though we only specify 2 inputs
27-
in the pattern definition.
27+
in the pattern definition.

docs/tutorial/rewriter/domain_option.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ONNX operators can belong to different domains:
1515
:pyobject: custom_relu_pattern
1616
```
1717

18-
In this pattern, `_domain="custom.domain"` ensures that only `Relu` operations from the
18+
In this pattern, `_domain="custom.domain"` ensures that only `Relu` operations from the
1919
"custom.domain" domain will be matched, not standard ONNX `Relu` operations.
2020

2121
## Creating replacement operations in a specific domain
@@ -35,4 +35,4 @@ provide optimized implementations of standard operations.
3535

3636
This example shows how domain-specific pattern matching can be used to migrate operations
3737
between different operator domains, such as replacing custom domain operations with
38-
standard ONNX operations or vice versa.
38+
standard ONNX operations or vice versa.

docs/tutorial/rewriter/examples/allow_other_inputs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ def apply_rewrite(model):
6868

6969

7070
_model_with_rewrite = apply_rewrite(_model)
71-
onnx.checker.check_model(_model_with_rewrite)
71+
onnx.checker.check_model(_model_with_rewrite)

docs/tutorial/rewriter/examples/domain_option.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ def apply_rewrite(model):
8383
# The rewrite rule will now match the Relu operation in the custom domain
8484
# and replace it with a standard ONNX Relu operation
8585
_model_with_rewrite = apply_rewrite(_model)
86-
onnx.checker.check_model(_model_with_rewrite)
86+
onnx.checker.check_model(_model_with_rewrite)

docs/tutorial/rewriter/examples/outputs_option.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ def apply_rewrite(model):
7373

7474

7575
_model_with_rewrite = apply_rewrite(_model)
76-
onnx.checker.check_model(_model_with_rewrite)
76+
onnx.checker.check_model(_model_with_rewrite)

docs/tutorial/rewriter/outputs_option.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ specification ensures the pattern only matches operations with this specific out
2626
In the replacement, `_outputs=["first_half", "second_half"]` creates two outputs with
2727
descriptive names. This can make the replacement pattern more readable and maintainable.
2828

29-
**Important**: The number of outputs in the replacement pattern must match the number of
29+
**Important**: The number of outputs in the replacement pattern must match the number of
3030
outputs in the target pattern. Since the pattern specifies `_outputs=2`, the replacement
3131
must also produce exactly 2 outputs.
3232

@@ -40,4 +40,4 @@ The `_outputs` option is particularly important when:
4040
- Working with operations that have variable numbers of outputs (like `Split`)
4141
- Creating custom operations that need specific output configurations
4242
- Ensuring pattern matching precision by specifying exact output counts
43-
- Improving code readability by naming outputs in replacement patterns
43+
- Improving code readability by naming outputs in replacement patterns

0 commit comments

Comments
 (0)