Skip to content

Commit

Permalink
[air/hotfix] Fix test_tune (ray-project#26721)
Browse files Browse the repository at this point in the history
Broken by ray-project#26493

Signed-off-by: Kai Fricke <[email protected]>
Signed-off-by: Stefan van der Kleij <[email protected]>
  • Loading branch information
krfricke authored and Stefan van der Kleij committed Aug 18, 2022
1 parent 2419667 commit 5619cb0
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions python/ray/train/tests/test_tune.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,13 +335,12 @@ def train_func():
trainer = TorchTrainer(
train_func,
torch_config=TorchConfig(backend="gloo"),
scaling_config={
"num_workers": 2,
"use_gpu": True,
"resources_per_worker": {"GPU": num_gpus_per_worker},
},
scaling_config=ScalingConfig(
num_workers=2,
use_gpu=True,
resources_per_worker={"GPU": num_gpus_per_worker},
),
)

tuner = Tuner(
trainer,
param_space={
Expand Down

0 comments on commit 5619cb0

Please sign in to comment.