From c6b14d618f1ebe8f5738f7ec4b1a4af2bc8aa425 Mon Sep 17 00:00:00 2001 From: Vivek <41533822+v-raja@users.noreply.github.com> Date: Wed, 28 Jun 2023 21:19:16 +0100 Subject: [PATCH] Correct code in page (#3433) Corrects the argument to `create_run_from_pipeline_func` to refer to a func, instead of a IR yaml file. Co-authored-by: Chen Sun --- content/en/docs/components/pipelines/v2/run-a-pipeline.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/docs/components/pipelines/v2/run-a-pipeline.md b/content/en/docs/components/pipelines/v2/run-a-pipeline.md index f6a50cf34..c8488b1dd 100644 --- a/content/en/docs/components/pipelines/v2/run-a-pipeline.md +++ b/content/en/docs/components/pipelines/v2/run-a-pipeline.md @@ -56,7 +56,7 @@ client.create_run_from_pipeline_package('pipeline.yaml', arguments={'param': 'a' To submit a Python pipeline function for execution use the `.create_run_from_pipeline_func` convenience method, which wraps compilation and run submission into one method: ```python -client.create_run_from_pipeline_func('pipeline.yaml', arguments={'param': 'a', 'other_param': 2}) +client.create_run_from_pipeline_func(pipeline_func, arguments={'param': 'a', 'other_param': 2}) ``` See the [KFP SDK Client reference documentation][kfp-sdk-api-ref-client] for a detailed description of the `Client` constructor and method parameters. @@ -79,4 +79,4 @@ For more information about the `kfp run create` command, see the [KFP Command Li [compile-a-pipeline]: /docs/components/pipelines/v2/compile-a-pipeline [kfp-sdk-api-ref-client]: https://kubeflow-pipelines.readthedocs.io/en/stable/source/client.html [kfp-cli]: /docs/components/pipelines/v2/cli/ -[kfp-run-create-reference-docs]: https://kubeflow-pipelines.readthedocs.io/en/stable/source/cli.html#kfp-run-create \ No newline at end of file +[kfp-run-create-reference-docs]: https://kubeflow-pipelines.readthedocs.io/en/master/source/cli.html#kfp-run-create