Skip to content

Commit 73a8936

Browse files
authored
Merge branch 'main' into sphinx-tv-tutorial
2 parents c0dfb01 + 958704f commit 73a8936

31 files changed

+2133
-218
lines changed

.jenkins/build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ pip install --progress-bar off -r $DIR/../requirements.txt
2424

2525
#Install PyTorch Nightly for test.
2626
# Nightly - pip install --pre torch torchvision torchaudio -f https://download.pytorch.org/whl/nightly/cu102/torch_nightly.html
27-
# Install 2.1 for testing
28-
# pip uninstall -y torch torchvision torchaudio torchtext torchdata
29-
# pip3 install torch torchvision torchaudio --no-cache-dir --index-url https://download.pytorch.org/whl/test/cu121
30-
# pip3 install torchdata torchtext --index-url https://download.pytorch.org/whl/test/cpu
27+
# Install 2.2 for testing
28+
pip uninstall -y torch torchvision torchaudio torchtext torchdata
29+
pip3 install torch==2.2.0 torchvision torchaudio --no-cache-dir --index-url https://download.pytorch.org/whl/test/cu121
30+
pip3 install torchdata torchtext --index-url https://download.pytorch.org/whl/test/cpu
3131

3232
# Install two language tokenizers for Translation with TorchText tutorial
3333
python -m spacy download en_core_web_sm

.jenkins/validate_tutorials_built.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
"intermediate_source/_torch_export_nightly_tutorial", # does not work on release
3030
"advanced_source/super_resolution_with_onnxruntime",
3131
"advanced_source/ddp_pipeline", # requires 4 gpus
32+
"advanced_source/usb_semisup_learn", # in the current form takes 140+ minutes to build - can be enabled when the build time is reduced
3233
"prototype_source/fx_graph_mode_ptq_dynamic",
34+
"prototype_source/maskedtensor_sparsity", # Enable when fixed for 2.2
3335
"prototype_source/vmap_recipe",
3436
"prototype_source/torchscript_freezing",
3537
"prototype_source/nestedtensor",

.pyspelling.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ matrix:
1919
- open: '\.\.\s+(figure|literalinclude|math|image|grid)::'
2020
close: '\n'
2121
# Exclude roles:
22-
- open: ':(?:(class|py:mod|mod|func)):`'
22+
- open: ':(?:(class|py:mod|mod|func|meth|obj)):`'
2323
content: '[^`]*'
2424
close: '`'
2525
# Exclude reStructuredText hyperlinks
@@ -70,7 +70,7 @@ matrix:
7070
- open: ':figure:.*'
7171
close: '\n'
7272
# Ignore reStructuredText roles
73-
- open: ':(?:(class|file|func|math|ref|octicon)):`'
73+
- open: ':(?:(class|file|func|math|ref|octicon|meth|obj)):`'
7474
content: '[^`]*'
7575
close: '`'
7676
- open: ':width:'
91 KB
Loading

_static/img/pendulum.gif

122 KB
Loading

_static/img/rollout_recurrent.png

338 KB
Loading

_templates/layout.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
{{ super() }}
1818
<script>
1919

20-
20+
// Helper function to make it easier to call dataLayer.push()
21+
function gtag(){window.dataLayer.push(arguments);}
22+
2123
//add microsoft link
2224

2325
if(window.location.href.indexOf("/beginner/basics/")!= -1)

advanced_source/neural_style_tutorial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
import matplotlib.pyplot as plt
5757

5858
import torchvision.transforms as transforms
59-
import torchvision.models as models
59+
from torchvision.models import vgg19, VGG19_Weights
6060

6161
import copy
6262

@@ -262,7 +262,7 @@ def forward(self, input):
262262
# network to evaluation mode using ``.eval()``.
263263
#
264264

265-
cnn = models.vgg19(pretrained=True).features.eval()
265+
cnn = vgg19(weights=VGG19_Weights.DEFAULT).features.eval()
266266

267267

268268

0 commit comments

Comments
 (0)