Skip to content

Commit

Permalink
Fix transformer sample message (#2592)
Browse files Browse the repository at this point in the history
  • Loading branch information
hougangliu authored and k8s-ci-robot committed Nov 13, 2019
1 parent da5cbb8 commit 9670cc1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions samples/core/pipeline_transformers/pipeline_transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ def add_annotation(op):
return op

@dsl.pipeline(
name='Retry random failures',
description='The pipeline includes two steps which fail randomly. It shows how to use ContainerOp(...).set_retry(...).'
name='Pipeline transformer',
description='The pipeline shows how to apply functions to all ops in the pipeline by pipeline transformers'
)
def retry_sample_pipeline():
def transform_pipeline():
op1 = print_op('hey, what are you up to?')
op2 = print_op('train my model.')
dsl.get_pipeline_conf().add_op_transformer(add_annotation)

if __name__ == '__main__':
kfp.compiler.Compiler().compile(retry_sample_pipeline, __file__ + '.zip')
kfp.compiler.Compiler().compile(transform_pipeline, __file__ + '.zip')

0 comments on commit 9670cc1

Please sign in to comment.