Add ray.util package and move libraries from experimental (#7100)

This commit is contained in:
Eric Liang
2020-02-18 13:43:19 -08:00
committed by GitHub
parent fae99ecb8e
commit 5df801605e
113 changed files with 305 additions and 637 deletions
+2 -2
View File
@@ -188,7 +188,7 @@ class Counter:
self.count += 1
return self.count
counter = Counter.remote()
ray.experimental.register_actor("Counter", counter)
ray.util.register_actor("Counter", counter)
time.sleep(100)
""".format(address)
@@ -199,7 +199,7 @@ import time
ray.init(address="{}")
while True:
try:
counter = ray.experimental.get_actor("Counter")
counter = ray.util.get_actor("Counter")
break
except ValueError:
time.sleep(1)