-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Closed
Labels
Description
What is your question?
Ray version 0.8.5
pytorch version 1.0.1.post2
OS: Ubuntu 18
I copied the tutorial from https://docs.ray.io/en/master/tune.html#tune-index
into an empty python file tune.py
then I call python tune.py, I got the following error in the error log file
I checked separatedly, ray.tune on my machine indeed does not have a "report" method, anything I did wrong for installation? I just did as the tutorial said pip install 'ray[tune]'
Failure # 1 (occurred at 2020-06-17_11-54-03)
2 Traceback (most recent call last):
3 File "/home/xxx/anaconda3/lib/python3.7/site-packages/ray/tune/trial_runner.py", line 467, in _process_trial
4 result = self.trial_executor.fetch_result(trial)
5 File "/home/xxx/anaconda3/lib/python3.7/site-packages/ray/tune/ray_trial_executor.py", line 431, in fetch_result
6 result = ray.get(trial_future[0], DEFAULT_GET_TIMEOUT)
7 File "/home/xxx/anaconda3/lib/python3.7/site-packages/ray/worker.py", line 1515, in get
8 raise value.as_instanceof_cause()
9 ray.exceptions.RayTaskError(TuneError): ^[[36mray::WrappedTrackFunc.train()^[[39m (pid=14553, ip=192.168.128.251)
10 File "python/ray/_raylet.pyx", line 463, in ray._raylet.execute_task
11 File "python/ray/_raylet.pyx", line 417, in ray._raylet.execute_task.function_executor
12 File "/home/xxx/anaconda3/lib/python3.7/site-packages/ray/tune/trainable.py", line 261, in train
13 result = self._train()
14 File "/home/xxx/anaconda3/lib/python3.7/site-packages/ray/tune/function_runner.py", line 216, in _train
15 self._report_thread_runner_error(block=True)
16 File "/home/xxx/anaconda3/lib/python3.7/site-packages/ray/tune/function_runner.py", line 259, in _report_thread_runner_error
17 .format(err_tb_str)))
18 ray.tune.error.TuneError: Trial raised an exception. Traceback:
19 ^[[36mray::WrappedTrackFunc.train()^[[39m (pid=14553, ip=192.168.128.251)
20 File "/home/xxx/anaconda3/lib/python3.7/site-packages/ray/tune/function_runner.py", line 110, in run
21 self._entrypoint()
22 File "/home/xxx/anaconda3/lib/python3.7/site-packages/ray/tune/function_runner.py", line 162, in entrypoint
23 return self._trainable_func(config, self._status_reporter)
24 File "/home/xxx/anaconda3/lib/python3.7/site-packages/ray/tune/function_runner.py", line 288, in _trainable_func
25 output = train_func(config)
26 File "tune.py", line 13, in train_mnist
27 tune.report(mean_accuracy=acc)
28 AttributeError: module 'ray.tune' has no attribute 'report'
29
Reactions are currently unavailable