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
+3 -3
View File
@@ -483,14 +483,14 @@ class ActorClass:
# Check whether the name is already taken.
if name is not None:
try:
ray.experimental.get_actor(name)
ray.util.get_actor(name)
except ValueError: # name is not taken, expected.
pass
else:
raise ValueError(
"The name {name} is already taken. Please use "
"a different name or get existing actor using "
"ray.experimental.get_actor('{name}')".format(name=name))
"ray.util.get_actor('{name}')".format(name=name))
# Set the actor's default resources if not already set. First three
# conditions are to check that no resources were specified in the
@@ -585,7 +585,7 @@ class ActorClass:
original_handle=True)
if name is not None:
ray.experimental.register_actor(name, actor_handle)
ray.util.register_actor(name, actor_handle)
return actor_handle