已编译图 API#

输入和输出节点#

ray.dag.input_node.InputNode

在 DAG 构建 API 中用于标记 DAG 入口点的 Ray DAG 节点。

ray.dag.output_node.MultiOutputNode

在 DAG 构建 API 中用于标记 DAG 端点的 Ray DAG 节点

DAG 构建#

ray.actor.ActorMethod.bind

为 Ray DAG 构建绑定 Actor 方法的参数。

ray.dag.DAGNode.with_tensor_transport

为此节点配置 torch 张量传输。

ray.experimental.compiled_dag_ref.CompiledDAGRef

对已编译 DAG 执行结果的引用。

已编译图操作#

ray.dag.DAGNode.experimental_compile

为此 DAG 编译加速执行路径。

ray.dag.compiled_dag_node.CompiledDAG.execute

使用已编译的执行路径执行此 DAG。

ray.dag.compiled_dag_node.CompiledDAG.visualize

通过显示任务及其依赖关系来可视化已编译的图。

配置#

ray.dag.context.DAGContext

Ray DAG 的全局设置。