Skip to content

Commit cb52415

Browse files
committed
add note
1 parent a35b1c5 commit cb52415

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

beginner_source/onnx/export_simple_model_to_onnx_tutorial.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
1111
**Author**: `Ti-Tai Wang <https://github.com/titaiwangms>`_, `Justin Chu <[email protected]>`_, `Thiago Crepaldi <https://github.com/thiagocrepaldi>`_.
1212
13+
.. note::
14+
Starting with PyTorch 2.5, there are two ONNX Exporter options available.
15+
* ``torch.onnx.export(..., dynamo=True)`` is the recommended exporter that leverages ``torch.export`` and Torch FX for graph capture.
16+
* ``torch.onnx.export`` is the legacy approach that relies on the deprecated TorchScript and is no longer recommended for use.
17+
1318
"""
1419

1520
###############################################################################

0 commit comments

Comments
 (0)