Skip to content

Commit

Permalink
nit: fix typo add_node_selector_constraint to set_accelerator_type (#…
Browse files Browse the repository at this point in the history
…3949)

Signed-off-by: Ryan Jung <[email protected]>
  • Loading branch information
ryanjung-jm authored Jan 2, 2025
1 parent 10ed1cc commit c009ba9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/en/docs/components/pipelines/user-guides/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ from kfp.dsl import importer_node

##### **Adding node selector constraint/accelerator**

The task method `.add_node_selector_constraint` is deprecated in favor of `.add_node_selector_constraint`. Compared to the previous implementation of `.add_node_selector_constraint`, both methods have the `label_name` parameter removed and the `value` parameter is replaced by the parameter `accelerator`.
The task method `.add_node_selector_constraint` is deprecated in favor of `.set_accelerator_type`. Compared to the previous implementation of `.add_node_selector_constraint`, both methods have the `label_name` parameter removed and the `value` parameter is replaced by the parameter `accelerator`.

**Change:** Use `task.set_accelerator_type(accelerator=...)`. Provide the previous `value` argument to the `accelerator` parameter. Omit the `label_name`.

Expand Down Expand Up @@ -703,4 +703,4 @@ If you believe we missed a breaking change or an important migration step, pleas
[vertex-pipelines]: https://cloud.google.com/vertex-ai/docs/pipelines/introduction
[vertex-sdk]: https://cloud.google.com/vertex-ai/docs/pipelines/run-pipeline#vertex-ai-sdk-for-python
[dsl-pipelinetask-set-env-variable]: https://kubeflow-pipelines.readthedocs.io/en/2.0.0b13/source/dsl.html#kfp.dsl.PipelineTask.set_env_variable
[task-configuration-methods]: /docs/components/pipelines/user-guides/components/compose-components-into-pipelines/#task-configurations
[task-configuration-methods]: /docs/components/pipelines/user-guides/components/compose-components-into-pipelines/#task-configurations

0 comments on commit c009ba9

Please sign in to comment.