Skip to content

Commit da79564

Browse files
author
Thiago Crepaldi
committed
Address comments
1 parent 050a6e2 commit da79564

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

advanced_source/super_resolution_with_onnxruntime.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
.. Note::
66
As of PyTorch 2.1, there are two versions of ONNX Exporter.
77
8-
* ``torch.onnx.dynamo_export` is the latest and recommended exporter based on the TorchDynamo and is the default starting from PyTorch 2.1
9-
* ``torch.onnx.export`` is based on TorchScript backend and has been the default until PyTorch 2.0.
8+
* ``torch.onnx.dynamo_export`is the newest (still in beta) exporter based on the TorchDynamo technology released with PyTorch 2.0
9+
* ``torch.onnx.export`` is based on TorchScript backend and has been available since 1.2.0
1010
1111
In this tutorial, we describe how to convert a model defined
12-
in PyTorch into the ONNX format using the legacy ``torch.onnx.export` ONNX exporter.
12+
in PyTorch into the ONNX format using the TorchScript ``torch.onnx.export` ONNX exporter.
1313
14-
The exported model will be executed it with ONNX Runtime.
14+
The exported model will be executed with ONNX Runtime.
1515
ONNX Runtime is a performance-focused engine for ONNX models,
1616
which inferences efficiently across multiple platforms and hardware
1717
(Windows, Linux, and Mac and on both CPUs and GPUs).

beginner_source/export_simple_model_to_onnx_tutorial.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
.. Note::
99
As of PyTorch 2.1, there are two versions of ONNX Exporter.
1010
11-
* ``torch.onnx.dynamo_export` is the latest and recommended exporter basedon the TorchDynamo and is the default starting from PyTorch 2.1
12-
* ``torch.onnx.export`` is based on TorchScript backend and has been the default until PyTorch 2.0.
11+
* ``torch.onnx.dynamo_export`is the newest (still in beta) exporter based on the TorchDynamo technology released with PyTorch 2.0
12+
* ``torch.onnx.export`` is based on TorchScript backend and has been available since 1.2.0
1313
1414
In this tutorial, we describe how to convert a model defined in PyTorch into the ONNX format using
15-
the latest and preferred ``torch.onnx.dynamo_export` ONNX exporter.
15+
TorchDynamo and the ``torch.onnx.dynamo_export`` ONNX exporter.
1616
1717
"""
1818

@@ -41,7 +41,7 @@
4141
#
4242
# %%bash
4343
# pip install onnx
44-
# pip install onnxscript-preview # TODO: Replace by `onnxscript` when we get the name at pypi.org officially
44+
# pip install onnxscript-preview # TODO: Replace by `onnxscript` when we get the name at pypi.org officially
4545
#
4646
# Once your environment is set up, let’s start modeling our image classifier with PyTorch,
4747
# exactly like we did in the 60 Minute Blitz tutorial.

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ transformers
3434
torchmultimodal-nightly # needs to be updated to stable as soon as it's avaialable
3535
deep_phonemizer==0.0.17
3636
onnx
37-
onnxscript-preview # TODO: Replace by `onnxscript` when we get the name at pypi.org officially
37+
onnxscript-preview # TODO: Replace by `onnxscript` when we get the name at pypi.org officially
3838
onnxruntime
3939

4040
importlib-metadata==6.8.0

0 commit comments

Comments
 (0)