共用方式為


StepRunOutput 類別

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

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

初始化 StepRunOutput。

繼承
builtins.object
StepRunOutput

建構函式

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

參數

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

圖形內容物件。

pipeline_run_id
str
必要

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

step_run
StepRun
必要

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

name
str
必要

輸出的名稱。

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

步驟輸出。

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

圖形內容物件。

pipeline_run_id
str
必要

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

step_run
StepRun
必要

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

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()

傳回

埠資料參考。

傳回類型