StepRunOutput 类
表示管道中由 StepRun 创建的输出。
StepRunOutput 可用于访问由步骤创建的 PortDataReference。
- 继承
-
builtins.objectStepRunOutput
构造函数
StepRunOutput(context, pipeline_run_id, step_run, name, step_output)
参数
- context
- <xref:azureml.pipeline.core._GraphContext>
必需
图形上下文对象。
- step_output
- <xref:azureml.pipeline.core._restclients.aeva.models.NodeOutput>
必需
步骤输出。
注解
步骤运行输出通过调用 get_output 进行实例化。 使用 get_port_data_reference 检索 PortDataReference,后者可用于下载数据,并可用作未来管道中的步骤输入。
从 StepRun 获取 StepRunOutput 并下载输出数据的一个示例如下所示:
from azureml.pipeline.core import PipelineRun, StepRun, PortDataReference
pipeline_run = PipelineRun(experiment, "<pipeline_run_id>")
step_run = pipeline_run.find_step_run("<step_name>")[0]
step_run_output = step_run.get_output("<output_name>")
port_data_reference = step_run_output.get_port_data_reference()
port_data_reference.download(local_path="path")
方法
| get_port_data_reference |
获取由步骤生成的端口数据引用。 |
get_port_data_reference
反馈
提交和查看相关反馈