Skip to content

Instantly share code, notes, and snippets.

@eileen-code4fun
Last active June 2, 2021 22:41
Show Gist options
  • Save eileen-code4fun/8181e35cd36edc1e5827a5d7337c8ef6 to your computer and use it in GitHub Desktop.
Save eileen-code4fun/8181e35cd36edc1e5827a5d7337c8ef6 to your computer and use it in GitHub Desktop.
CIFAR10 PL Launch
from kfp.v2 import compiler
from google.cloud.aiplatform import AIPlatformClient
compiler.Compiler().compile(pipeline_func=e2e_tutorial_pipeline, package_path='e2e-tutorial-automl-pipeline.json')
api_client = AIPlatformClient(project_id='PROJECT_ID', region='us-central1')
api_client.create_run_from_job_spec(
job_spec_path='e2e-tutorial-automl-pipeline.json'
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment