Skip to content

Commit 24aa97e

Browse files
authored
[train] fix job working dir test (#58010)
cherrypick #57995 Signed-off-by: Lonnie Liu <[email protected]>
1 parent 764a927 commit 24aa97e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

release/jobs_tests/workloads/run_simple_tune_job.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# From https://docs.ray.io/en/latest/tune/index.html
22

33
import ray
4-
from ray import train, tune
4+
from ray import tune
55

66

77
def objective(step, alpha, beta):
@@ -15,7 +15,7 @@ def training_function(config):
1515
# Iterative training function - can be any arbitrary training procedure.
1616
intermediate_score = objective(step, alpha, beta)
1717
# Feed the score back back to Tune.
18-
train.report(dict(mean_loss=intermediate_score))
18+
tune.report(dict(mean_loss=intermediate_score))
1919

2020

2121
ray.init(address="auto")

0 commit comments

Comments
 (0)