File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ def outer_function():
174
174
# every function call inside the target function or module inside the target
175
175
# function or module that is not in a skiplist (e.g. builtins, some functions in
176
176
# the torch.* namespace).
177
- #
177
+ #
178
178
# **Best Practices:**
179
179
#
180
180
# 1. **Top-Level Compilation:** One approach is to compile at the highest level
@@ -185,11 +185,11 @@ def outer_function():
185
185
#
186
186
# 2. **Modular Testing:** Test individual functions and modules with ``torch.compile``
187
187
# before integrating them into larger models to isolate potential issues.
188
- #
188
+ #
189
189
# 3. **Disable Compilation Selectively:** If certain functions or sub-modules
190
190
# cannot be handled by `torch.compile`, use the `torch.compiler.disable` context
191
191
# managers to recursively exclude them from compilation.
192
- #
192
+ #
193
193
# 4. **Compile Leaf Functions First:** In complex models with multiple nested
194
194
# functions and modules, start by compiling the leaf functions or modules first.
195
195
# For more information see `TorchDynamo APIs for fine-grained tracing <https://pytorch.org/docs/stable/torch.compiler_fine_grain_apis.html>`__.
You can’t perform that action at this time.
0 commit comments