mirror of
https://github.com/wassname/ray.git
synced 2026-07-10 17:07:56 +08:00
[api] Initial API deprecations for Ray 1.0 (#10325)
This commit is contained in:
@@ -80,12 +80,11 @@ from ray.state import (jobs, nodes, actors, objects, timeline,
|
||||
available_resources) # noqa: E402
|
||||
from ray.worker import ( # noqa: F401
|
||||
LOCAL_MODE, SCRIPT_MODE, WORKER_MODE, IO_WORKER_MODE, cancel, connect,
|
||||
disconnect, get, get_actor, get_gpu_ids, get_resource_ids, get_webui_url,
|
||||
init, is_initialized, put, kill, register_custom_serializer, remote,
|
||||
shutdown, show_in_webui, wait,
|
||||
disconnect, get, get_actor, get_gpu_ids, get_resource_ids,
|
||||
get_dashboard_url, init, is_initialized, put, kill, remote, shutdown,
|
||||
show_in_dashboard, wait,
|
||||
) # noqa: E402
|
||||
import ray.internal # noqa: E402
|
||||
import ray.projects # noqa: E402
|
||||
# We import ray.actor because some code is run in actor.py which initializes
|
||||
# some functions in the worker.
|
||||
import ray.actor # noqa: F401
|
||||
@@ -113,7 +112,7 @@ __all__ = [
|
||||
"get_actor",
|
||||
"get_gpu_ids",
|
||||
"get_resource_ids",
|
||||
"get_webui_url",
|
||||
"get_dashboard_url",
|
||||
"init",
|
||||
"internal",
|
||||
"is_initialized",
|
||||
@@ -127,12 +126,10 @@ __all__ = [
|
||||
"objects",
|
||||
"object_transfer_timeline",
|
||||
"profile",
|
||||
"projects",
|
||||
"put",
|
||||
"register_custom_serializer",
|
||||
"remote",
|
||||
"shutdown",
|
||||
"show_in_webui",
|
||||
"show_in_dashboard",
|
||||
"timeline",
|
||||
"util",
|
||||
"wait",
|
||||
|
||||
Reference in New Issue
Block a user