Slide 10
Slide 10 text
kfp.dsl.ParallelFor
json_string: str = json.dumps([
{"snakes": "anaconda",
"lizards": "anole",
"bunnies": [{"cottontail": "bugs"}, {"cottontail": "thumper"}]},
{"snakes": "cobra",
"lizards": "gecko",
"bunnies": [{"cottontail": "roger"}]},
])
with dsl.ParallelFor(json_string) as item:
with dsl.ParallelFor(item.bunnies) as item_bunnies:
print_op(item_bunnies.cottontail)
パイプラインにモデルのパラメーターや ID で分岐を作成
パイプラインは分割しすぎない & まとめすぎない