共用方式為


StepRunOutput 類別

表示在管線中建立 StepRun 的輸出。

StepRunOutput 可用來存取 PortDataReference 步驟所建立的 。

初始化 StepRunOutput。

建構函式

StepRunOutput(context, pipeline_run_id, step_run, name, step_output)

參數

名稱 Description
context
必要
<xref:azureml.pipeline.core._GraphContext>

圖形內容物件。

pipeline_run_id
必要
str

建立輸出之管線執行的標識碼。

step_run
必要

建立輸出的步驟執行物件。

name
必要
str

輸出的名稱。

step_output
必要
<xref:azureml.pipeline.core._restclients.aeva.models.NodeOutput>

步驟輸出。

context
必要
<xref:azureml.pipeline.core._GraphContext>

圖形內容物件。

pipeline_run_id
必要
str

建立輸出之管線執行的標識碼。

step_run
必要

建立輸出的步驟執行物件。

name
必要
str

輸出的名稱。

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

取得步驟所產生的埠數據參考。

get_port_data_reference()

傳回

類型 Description

埠數據參考。