Skip to content

Commit 8aec180

Browse files
committed
Fixed trailing whitespaces
1 parent 6a1a05f commit 8aec180

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

intermediate_source/torch_compile_tutorial.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def outer_function():
174174
# every function call inside the target function or module inside the target
175175
# function or module that is not in a skiplist (e.g. builtins, some functions in
176176
# the torch.* namespace).
177-
#
177+
#
178178
# **Best Practices:**
179179
#
180180
# 1. **Top-Level Compilation:** One approach is to compile at the highest level
@@ -185,11 +185,11 @@ def outer_function():
185185
#
186186
# 2. **Modular Testing:** Test individual functions and modules with ``torch.compile``
187187
# before integrating them into larger models to isolate potential issues.
188-
#
188+
#
189189
# 3. **Disable Compilation Selectively:** If certain functions or sub-modules
190190
# cannot be handled by `torch.compile`, use the `torch.compiler.disable` context
191191
# managers to recursively exclude them from compilation.
192-
#
192+
#
193193
# 4. **Compile Leaf Functions First:** In complex models with multiple nested
194194
# functions and modules, start by compiling the leaf functions or modules first.
195195
# For more information see `TorchDynamo APIs for fine-grained tracing <https://pytorch.org/docs/stable/torch.compiler_fine_grain_apis.html>`__.

0 commit comments

Comments
 (0)