latest (dev)
Copy
Latest development documentation · Updated 2026-10-08
Source code for tensorplay.distributed.rpc
from . import api, backend_registry, functions
from .api import (
AllGatherStates,
Future,
RRef,
_get_current_rpc_agent,
_is_current_rpc_agent_set,
_set_rpc_timeout,
get_rpc_timeout,
get_worker_info,
init_rpc,
is_available,
method_factory,
new_method,
remote,
rpc_async,
rpc_sync,
shutdown,
)
from .backend_registry import (
BackendType,
BackendValue,
backend_registered,
construct_rpc_backend_options,
init_backend,
register_backend,
)
from .constants import (
DEFAULT_INIT_METHOD,
DEFAULT_NUM_WORKER_THREADS,
DEFAULT_PROCESS_GROUP_TIMEOUT,
DEFAULT_RPC_TIMEOUT_SEC,
DEFAULT_SHUTDOWN_TIMEOUT,
UNSET_RPC_TIMEOUT,
)
from .options import TensorPipeRpcBackendOptions
[docs]
def is_available() -> bool:
return api.is_available()
__all__ = [
"api",
"backend_registry",
"functions",
"AllGatherStates",
"BackendType",
"BackendValue",
"Future",
"RRef",
"TensorPipeRpcBackendOptions",
"backend_registered",
"construct_rpc_backend_options",
"get_worker_info",
"get_rpc_timeout",
"init_backend",
"init_rpc",
"is_available",
"method_factory",
"new_method",
"register_backend",
"remote",
"rpc_async",
"rpc_sync",
"shutdown",
"DEFAULT_INIT_METHOD",
"DEFAULT_NUM_WORKER_THREADS",
"DEFAULT_PROCESS_GROUP_TIMEOUT",
"DEFAULT_RPC_TIMEOUT_SEC",
"DEFAULT_SHUTDOWN_TIMEOUT",
"UNSET_RPC_TIMEOUT",
]Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

