Skip to content

Commit

Permalink
update golden snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-mccarthy committed Sep 1, 2022
1 parent 2ef4ec9 commit c99378a
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ deploymentSpec:
'
- "\nimport kfp\nfrom kfp import dsl\nfrom kfp.dsl import *\nfrom typing import\
\ *\n\ndef model_consumer(model: Input[VertexModel],\n \
\ dataset: Input[VertexDataset]):\n print('Model')\n print('artifact.type:\
\ *\nfrom aiplatform import VertexModel\nfrom aiplatform import VertexDataset\n\
\ndef model_consumer(model: Input[VertexModel],\n dataset:\
\ Input[VertexDataset]):\n print('Model')\n print('artifact.type:\
\ ', type(model))\n print('artifact.name: ', model.name)\n print('artifact.uri:\
\ ', model.uri)\n print('artifact.metadata: ', model.metadata)\n\n \
\ print('Dataset')\n print('artifact.type: ', type(dataset))\n print('artifact.name:\
Expand Down Expand Up @@ -98,9 +99,9 @@ deploymentSpec:
'
- "\nimport kfp\nfrom kfp import dsl\nfrom kfp.dsl import *\nfrom typing import\
\ *\n\ndef model_producer(model: Output[aiplatform.VertexModel]):\n\n \
\ assert isinstance(model, aiplatform.VertexModel), type(model)\n with\
\ open(model.path, 'w') as f:\n f.write('my model')\n\n"
\ *\nimport aiplatform\n\ndef model_producer(model: Output[aiplatform.VertexModel]):\n\
\n assert isinstance(model, aiplatform.VertexModel), type(model)\n \
\ with open(model.path, 'w') as f:\n f.write('my model')\n\n"
image: python:3.7
pipelineInfo:
name: pipeline-with-vertex-types
Expand Down

0 comments on commit c99378a

Please sign in to comment.