Skip to content

Commit

Permalink
keeping MRs separate.
Browse files Browse the repository at this point in the history
Signed-off-by: Oswaldo Gomez <[email protected]>
  • Loading branch information
Oswaldo Gomez committed Aug 2, 2024
1 parent 429d0f3 commit 1df116e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion samples/core/loop_parallelism/loop_parallelism.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from kfp import compiler, dsl

@dsl.component()
def print_op(s: int):
def print_op(s: str):
print(s)

@dsl.pipeline(name='my-pipeline')
Expand Down
5 changes: 3 additions & 2 deletions samples/core/loop_parameter/loop_parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ def concat_op(a: str, b: str) -> str:


@dsl.component
def generate_op() -> list:
return [{'a': i, 'b': i * 10} for i in range(1, 5)]
def generate_op() -> str:
import json
return json.dumps([{'a': i, 'b': i * 10} for i in range(1, 5)])

@dsl.pipeline(name='pipeline-with-loop-parameter')
def my_pipeline(
Expand Down

0 comments on commit 1df116e

Please sign in to comment.