mirror of
https://github.com/wassname/ray.git
synced 2026-08-12 12:20:11 +08:00
unify starting local cluster with attaching to existing cluster (#327)
This commit is contained in:
committed by
Philipp Moritz
parent
0e5b858324
commit
2040372084
@@ -10,7 +10,7 @@ from tensorflow.examples.tutorials.mnist import input_data
|
||||
import hyperopt
|
||||
|
||||
if __name__ == "__main__":
|
||||
ray.services.start_ray_local(num_workers=3)
|
||||
ray.init(start_ray_local=True, num_workers=3)
|
||||
|
||||
# The number of sets of random hyperparameters to try.
|
||||
trials = 2
|
||||
|
||||
Reference in New Issue
Block a user