Skip to content

Commit 14664a8

Browse files
agunapalsvekars
andauthored
Apply suggestions from code review
Co-authored-by: Svetlana Karslioglu <[email protected]>
1 parent 7039a64 commit 14664a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

recipes_source/torch_export_challenges_solutions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Prerequisites
2525
Key requirement for ``torch.export``: No graph break
2626
----------------------------------------------------
2727

28-
`torch.compile <https://pytorch.org/tutorials/intermediate/torch_compile_tutorial.html>`__ speeds up PyTorch code by JIT compiling PyTorch code into optimized kernels. It optimizes the given model
28+
`torch.compile <https://pytorch.org/tutorials/intermediate/torch_compile_tutorial.html>`__ speeds up PyTorch code by using JIT to compile PyTorch code into optimized kernels. It optimizes the given model
2929
using ``TorchDynamo`` and creates an optimized graph , which is then lowered into the hardware using the backend specified in the API.
3030
When TorchDynamo encounters unsupported Python features, it breaks the computation graph, lets the default Python interpreter
3131
handle the unsupported code, and then resumes capturing the graph. This break in the computation graph is called a `graph break <https://pytorch.org/tutorials/intermediate/torch_compile_tutorial.html#torchdynamo-and-fx-graphs>`__.
@@ -173,7 +173,7 @@ Error: strict tracing with TorchDynamo
173173
174174
By default ``torch.export`` traces your code using `TorchDynamo <https://pytorch.org/docs/stable/torch.compiler_dynamo_overview.html>`__, a byte-code analysis engine, which symbolically analyzes your code and builds a graph.
175175
This analysis provides a stronger guarantee about safety but not all Python code is supported. When we export the ``yolo11n-pose`` model using the
176-
default strict mode, it errors.
176+
default strict mode, it typically returns an error.
177177

178178
Solution
179179
~~~~~~~~

0 commit comments

Comments
 (0)