kubeflow / website

Kubeflow's public website
Creative Commons Attribution 4.0 International
145 stars 752 forks source link

Compile a Pipeline #3679

Open Pjm1231 opened 4 months ago

Pjm1231 commented 4 months ago

from kfp import dsl from kfp import compiler

@dsl.pipeline def my_pipeline(message: str): """My ML pipeline."""

Define your pipeline's steps and operations here

Compile the pipeline function to pipeline.yaml

compiler.Compiler().compile( pipeline_func=my_pipeline, package_path='pipeline.yaml' )