Skip to content

Commit 092f7be

Browse files
author
Svetlana Karslioglu
committed
Fix #2219 and disabling failing tutorials
1 parent 3a71025 commit 092f7be

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.jenkins/validate_tutorials_built.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@
5151
"recipes/Captum_Recipe",
5252
"flask_rest_api_tutorial",
5353
"text_to_speech_with_torchaudio",
54+
"forward_ad_usage", # remove after #2218 is resolved.
55+
"text_sentiment_ngrams_tutorial" # reenable after 2.0 release.
5456
]
5557

5658

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()
337+
optimizer.zero_grad(set_to_none=False)
338338

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

0 commit comments

Comments
 (0)