Andrew Leverentz
06/22/2022, 12:24 AMmake_list
to generate outputs that will hit only branch A or only branch B (for example, {n_min: 0, n_max: 1}
or {n_min: 1, n_max: 2}
), the downstream op combine_lists
gets skipped completely because it thinks one of its inputs was skipped. I was hoping in this case that mapped_a.collect()
and mapped_b.collect()
would behave like empty lists when used as inputs to a downstream op, instead of skipping the downstream op altogether.
Is this a bug? If this is the intended behavior, is there any way to accomplish what I'm aiming for?Andrew Leverentz
06/22/2022, 7:14 PM@op(
ins={
"values_a": In(default_value=[]),
"values_b": In(default_value=[]),
},
)
def combine_lists(context, values_a, values_b):
<http://context.log.info|context.log.info>(f"Combining collected values: A: {values_a}, B: {values_b}")
Andrew Leverentz
06/22/2022, 7:37 PMsandy
06/23/2022, 12:17 AM