StepRunOutput 類別
- 繼承
-
builtins.objectStepRunOutput
建構函式
StepRunOutput(context, pipeline_run_id, step_run, name, step_output)
參數
名稱 | Description |
---|---|
context
必要
|
<xref:azureml.pipeline.core._GraphContext>
圖形內容物件。 |
pipeline_run_id
必要
|
建立輸出之管線執行的識別碼。 |
step_run
必要
|
建立輸出的步驟執行物件。 |
name
必要
|
輸出的名稱。 |
step_output
必要
|
<xref:azureml.pipeline.core._restclients.aeva.models.NodeOutput>
步驟輸出。 |
context
必要
|
<xref:azureml.pipeline.core._GraphContext>
圖形內容物件。 |
pipeline_run_id
必要
|
建立輸出之管線執行的識別碼。 |
step_run
必要
|
建立輸出的步驟執行物件。 |
name
必要
|
輸出的名稱。 |
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 |
取得步驟所產生的埠資料參考。 |