【发布时间】:2020-04-02 13:52:37
【问题描述】:
我可以使用
创建一个静态 for 循环with dsl.ParallelFor([1,2,3]) as item:
....
如何使用container_op.output 作为ParallelFor 的输入?
假设第一个容器输出一个整数n,然后我想运行ParallelFor n次。
这样的尝试不起作用:
container_op = ContainerOp(...)
with dsl.ParallelFor(container_op.output) as item:
....
我正在尝试刺激并行 python range(n) 函数。
【问题讨论】:
标签: python kubeflow kubeflow-pipelines