Skip to content

Commit

Permalink
Fixed trailing whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
ignaciobartol committed Jun 24, 2024
1 parent 6a1a05f commit 8aec180
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions intermediate_source/torch_compile_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def outer_function():
# every function call inside the target function or module inside the target
# function or module that is not in a skiplist (e.g. builtins, some functions in
# the torch.* namespace).
#
#
# **Best Practices:**
#
# 1. **Top-Level Compilation:** One approach is to compile at the highest level
Expand All @@ -185,11 +185,11 @@ def outer_function():
#
# 2. **Modular Testing:** Test individual functions and modules with ``torch.compile``
# before integrating them into larger models to isolate potential issues.
#
#
# 3. **Disable Compilation Selectively:** If certain functions or sub-modules
# cannot be handled by `torch.compile`, use the `torch.compiler.disable` context
# managers to recursively exclude them from compilation.
#
#
# 4. **Compile Leaf Functions First:** In complex models with multiple nested
# functions and modules, start by compiling the leaf functions or modules first.
# For more information see `TorchDynamo APIs for fine-grained tracing <https://pytorch.org/docs/stable/torch.compiler_fine_grain_apis.html>`__.
Expand Down

0 comments on commit 8aec180

Please sign in to comment.