You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I do not understand how I can collect the outputs from an inner loop and run a component that uses the outputs as a parameter before the next outer loop iteration starts. Here is an example:
def my_pipeline():
dsl.ParallelFor(["a", "b", "c"], parallelism=1) as x:
dsl.ParallelFor([1, 2, 3]) as y:
foo_task = foo(x=x, y=y)
foo2(my_list=dsl.Collected(foo_task.output)) # This component has to run before the next iteration starts.
Unfortunately, the next iteration of the outer loop starts before the foo2 component.
I have tried to use nested pipelines but I could not realize the desired behavior. Does dsl.Collected only work "globally" and not "loop-scoped"?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there!
I do not understand how I can collect the outputs from an inner loop and run a component that uses the outputs as a parameter before the next outer loop iteration starts. Here is an example:
Unfortunately, the next iteration of the outer loop starts before the foo2 component.
I have tried to use nested pipelines but I could not realize the desired behavior. Does dsl.Collected only work "globally" and not "loop-scoped"?
Beta Was this translation helpful? Give feedback.
All reactions