Skip to content

Commit d273aaa

Browse files
authored
Apply suggestions from code review
1 parent 1db14e4 commit d273aaa

File tree

3 files changed

+1
-14
lines changed

3 files changed

+1
-14
lines changed

.jenkins/build.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,6 @@ pip install -r $DIR/../requirements.txt
2929
# pip uninstall -y torch torchvision torchaudio torchtext
3030
# pip install --pre --upgrade -f https://download.pytorch.org/whl/test/cu116/torch_test.html torch torchdata torchvision torchaudio torchtext
3131

32-
# Install 2.0 nightly
33-
34-
pip uninstall -y torch torchvision torchaudio torchtext torchdata
35-
#pip install --pre --upgrade -f https://download.pytorch.org/whl/test/cu118/torch_test.html torch torchdata torchvision torchaudio torchtext
36-
pip3 install torch torchvision torchaudio --no-cache-dir --index-url https://download.pytorch.org/whl/test/cu117
37-
pip3 install torchdata torchtext --index-url https://download.pytorch.org/whl/test/cpu
38-
3932
# Install two language tokenizers for Translation with TorchText tutorial
4033
python -m spacy download en_core_web_sm
4134
python -m spacy download de_core_news_sm

.jenkins/validate_tutorials_built.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,6 @@
5050
"recipes/Captum_Recipe",
5151
"flask_rest_api_tutorial",
5252
"text_to_speech_with_torchaudio",
53-
"forward_ad_usage", # remove after #2218 is resolved.
54-
"text_sentiment_ngrams_tutorial", # reenable after 2.0 release.
55-
"tensorboard_profiler_tutorial", # reenable after 2.0 release.
56-
"nvfuser_intro_tutorial", # reenable after 2.0 release.
57-
"memory_format_tutorial" # reenable after 2.0 release.
58-
5953
]
6054

6155

beginner_source/introyt/autogradyt_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ def forward(self, x):
334334

335335
print(model.layer2.weight.grad[0][0:10])
336336

337-
optimizer.zero_grad(set_to_none=False)
337+
optimizer.zero_grad()
338338

339339
print(model.layer2.weight.grad[0][0:10])
340340

0 commit comments

Comments
 (0)