Skip to content

Commit 335108c

Browse files
andrewor14jcaip
authored andcommitted
Fix quantization tutorials (imports, syntax, and style)
Summary: This commit fixes the quantization tutorials such that they can be run smoothly by the user. Test Plan: Ran the updated tutorials without problem. Reviewers: jerryzh168 Subscribers: jerryzh168, supriyar ghstack-source-id: 196719d Pull Request resolved: #1763
1 parent 5e45c1c commit 335108c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

advanced_source/static_quantization_tutorial.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,8 @@ in this data. These functions mostly come from
344344
return data_loader, data_loader_test
345345
346346
347-
Next, we'll load in the pre-trained MobileNetV2 model. We provide the URL to download the data from in ``torchvision``
348-
`here <https://github.com/pytorch/vision/blob/master/torchvision/models/mobilenet.py#L9>`_.
347+
Next, we'll load in the pre-trained MobileNetV2 model. We provide the URL to download the model
348+
`here <https://download.pytorch.org/models/mobilenet_v2-b0353104.pth>`_.
349349

350350
.. code:: python
351351

prototype_source/fx_graph_mode_ptq_static.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ These steps are identitcal to `Static Quantization with Eager Mode in PyTorch <h
5757

5858
To run the code in this tutorial using the entire ImageNet dataset, first download imagenet by following the instructions at here `ImageNet Data <http://www.image-net.org/download>`_. Unzip the downloaded file into the 'data_path' folder.
5959

60-
Download the `torchvision resnet18 model <https://github.com/pytorch/vision/blob/master/torchvision/models/resnet.py#L12>`_ and rename it to
60+
Download the `torchvision resnet18 model <https://download.pytorch.org/models/resnet18-f37072fd.pth>`_ and rename it to
6161
``data/resnet18_pretrained_float.pth``.
6262

6363
.. code:: python

0 commit comments

Comments
 (0)