使用KFP DSL.Importer时设置伪影名

发布于 2025-01-19 07:36:54 字数 878 浏览 0 评论 0原文

使用KFP dsl.importer()函数导入工件时,导入的伪像获取默认值(display)名称artifact。我想给它一个自定义名称,以使管道和谱系跟踪更加清晰。我检查了 ,但是我似乎找不到一种方法来更改dsl.importer()函数产生的工件名称。

示例代码dsl.importer()

    load_dataset_step = dsl.importer(
        artifact_uri=input_data_uri,
        artifact_class=dsl.Dataset,
        reimport=False
    ).set_display_name("Load Dataset")

dsl.importer()的可视化步骤:

“

我正在利用Google Cloud Vertex ai Pipelines。

When importing an artifact using the kfp dsl.importer() function, the imported artifact gets the default (display) name artifact. I would like to give it a custom name to make the pipeline and lineage tracking more clear. I checked the documentation, but I can't seem to find a way to change the name of the artifact that the dsl.importer() function produces.

Example code dsl.importer():

    load_dataset_step = dsl.importer(
        artifact_uri=input_data_uri,
        artifact_class=dsl.Dataset,
        reimport=False
    ).set_display_name("Load Dataset")

Visualisation of the dsl.importer() step:

pipelines visualisation

I'm making use of Google Cloud Vertex AI Pipelines.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文