Skip to content

Commit

Permalink
[Pipelines] add default to pipeline component builder (Azure#27185)
Browse files Browse the repository at this point in the history
* add default to pipeline component builder

* resolve comment
  • Loading branch information
D-W- authored Oct 31, 2022
1 parent d8552b3 commit 49a6034
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,15 @@ def add_node(self, node: Union[BaseNode, AutoMLJob]):
"""
self.nodes.append(node)

def build(self, *, user_provided_kwargs, non_pipeline_params_dict=None) -> PipelineComponent:
def build(self, *, user_provided_kwargs=None, non_pipeline_params_dict=None) -> PipelineComponent:
"""
Build a pipeline component from current pipeline builder.
:param user_provided_kwargs: The kwargs user provided to dsl pipeline function. None if not provided.
:param non_pipeline_params_dict: Non-pipeline parameters to provided value. None if not exist.
"""
if user_provided_kwargs is None:
user_provided_kwargs = {}
# Clear nodes as we may call build multiple times.
self.nodes = []

Expand Down

0 comments on commit 49a6034

Please sign in to comment.