Fix pipeline controller kwargs with list

This commit is contained in:
allegroai 2022-03-11 23:50:40 +02:00
parent d852ed974e
commit 4c666b1829

View File

@ -2944,7 +2944,8 @@ class PipelineDecorator(PipelineController):
kwargs[inspect_func.args[i]] = v
kwargs_artifacts.update(
{k: walk_nested_dict_tuple_list(v, lambda x: x._remoteref())
{k: walk_nested_dict_tuple_list(
v, lambda x: x._remoteref() if isinstance(x, LazyEvalWrapper) else x)
for k, v in kwargs.items() if isinstance(v, LazyEvalWrapper)}
)
kwargs = {k: deepcopy(v) for k, v in kwargs.items() if not isinstance(v, LazyEvalWrapper)}