Skip to content

Commit abe11e2

Browse files
authored
Revert "Update ray to 2.7.2 (#2789)" (#2790)
This reverts commit c8967f4.
1 parent c8967f4 commit abe11e2

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

beginner_source/hyperparameter_tuning_tutorial.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@
5252
from ray.air import Checkpoint, session
5353
from ray.tune.schedulers import ASHAScheduler
5454

55-
# TODO: Migrate to ray.train.Checkpoint and remove following line
56-
os.environ["RAY_AIR_NEW_PERSISTENCE_MODE"]="0"
57-
5855
######################################################################
5956
# Most of the imports are needed for building the PyTorch model. Only the last three
6057
# imports are for Ray Tune.
@@ -455,8 +452,8 @@ def main(num_samples=10, max_num_epochs=10, gpus_per_trial=2):
455452
# Fixes ``AttributeError: '_LoggingTee' object has no attribute 'fileno'``.
456453
# This is only needed to run with sphinx-build.
457454
import sys
458-
if not not hasattr(sys.stdout, "encoding"):
459-
sys.stdout.encoding = "latin1"
455+
456+
sys.stdout.fileno = lambda: False
460457
# sphinx_gallery_end_ignore
461458
# You can change the number of GPUs per trial here:
462459
main(num_samples=10, max_num_epochs=10, gpus_per_trial=0)

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ bs4
2020
awscliv2==2.1.1
2121
flask
2222
spacy==3.4.1
23-
ray[tune]==2.7.2
23+
ray[tune]==2.4.0
2424
tensorboard
2525
jinja2==3.1.3
2626
pytorch-lightning

0 commit comments

Comments
 (0)