StepRunOutput Class
Represents an output created by a StepRun in a Pipeline.
StepRunOutput can be used to access the PortDataReference created by the step.
Initialize StepRunOutput.
- Inheritance
-
builtins.objectStepRunOutput
Constructor
StepRunOutput(context, pipeline_run_id, step_run, name, step_output)
Parameters
- context
- <xref:azureml.pipeline.core._GraphContext>
The graph context object.
- step_output
- <xref:azureml.pipeline.core._restclients.aeva.models.NodeOutput>
The step output.
- context
- <xref:azureml.pipeline.core._GraphContext>
The graph context object.
- step_output
- <xref:azureml.pipeline.core._restclients.aeva.models.NodeOutput>
The step output.
Remarks
Step run outputs are instantiated by calling get_output. Use get_port_data_reference to retrieve the PortDataReference which can be used to download the data and can be used as an step input in a future pipeline.
An example of getting the StepRunOutput from a StepRun and downloading the output data is as follows:
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")
Methods
get_port_data_reference |
Get port data reference produced by the step. |
get_port_data_reference
Get port data reference produced by the step.
get_port_data_reference()
Returns
The port data reference.
Return type
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for