Skip to content

Commit 55799de

Browse files
author
Svetlana Karslioglu
authored
Merge branch 'main' into patch-1
2 parents b53d6e4 + 6b3904b commit 55799de

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.jenkins/validate_tutorials_built.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
"recipes/timer_quick_start",
5050
"recipes/amp_recipe",
5151
"recipes/Captum_Recipe",
52-
"hyperparameter_tuning_tutorial",
5352
"flask_rest_api_tutorial",
5453
"text_to_speech_with_torchaudio",
5554
]

beginner_source/hyperparameter_tuning_tutorial.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,12 @@ def main(num_samples=10, max_num_epochs=10, gpus_per_trial=2):
424424

425425

426426
if __name__ == "__main__":
427+
# sphinx_gallery_start_ignore
428+
# Fixes AttributeError: '_LoggingTee' object has no attribute 'fileno'.
429+
# This is only needed to run with sphinx-build.
430+
import sys
431+
sys.stdout.fileno = lambda: False
432+
# sphinx_gallery_end_ignore
427433
# You can change the number of GPUs per trial here:
428434
main(num_samples=10, max_num_epochs=10, gpus_per_trial=0)
429435

0 commit comments

Comments
 (0)