Skip to content

Commit 8e6ae12

Browse files
authored
Update beginner_source/hyperparameter_tuning_tutorial.py
1 parent 99e06f4 commit 8e6ae12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beginner_source/hyperparameter_tuning_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ def main(num_samples=10, max_num_epochs=10, gpus_per_trial=2):
455455
# Fixes ``AttributeError: '_LoggingTee' object has no attribute 'fileno'``.
456456
# This is only needed to run with sphinx-build.
457457
import sys
458-
if not not hasattr(sys.stdout, "encoding"):
458+
if not hasattr(sys.stdout, "encoding"):
459459
sys.stdout.encoding = "latin1"
460460
# sphinx_gallery_end_ignore
461461
# You can change the number of GPUs per trial here:

0 commit comments

Comments
 (0)