GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: expose env var in cust training class run func args by morgandu · Pull Request #366 · googleapis/python-aiplatform

Conversation

@morgandu

@morgandu morgandu commented May 5, 2021

Copy link
Copy Markdown
Contributor

Fixes #<b/186513106> 🦕

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@morgandu
morgandu requested a review from sasha-gitg May 5, 2021 16:10
@product-auto-label product-auto-label Bot added the api: aiplatform Issues related to the AI Platform API. label May 5, 2021
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label May 5, 2021
@morgandu
morgandu force-pushed the mor--expose-environment-variables-to-run-arguments-in-custom-training-classes branch 5 times, most recently from 14186af to 05ca77d Compare May 6, 2021 18:48
@sasha-gitg

sasha-gitg commented May 6, 2021

Copy link
Copy Markdown
Member

I think this is failing because, unlike model_to_upload, training_task_inputs is a struct.Value:

https://github.com/googleapis/python-aiplatform/blob/master/google/cloud/aiplatform_v1/types/training_pipeline.py#L161

Try passing in a dictionary with the same schema. Something like::

spec["pythonPackageSpec"]["env"] = [
  {'name':key, 'value': value} for key, value in environment_variables.items()]
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@morgandu
feat: expose env var in cust training class run func args
a1babec
@morgandu
morgandu force-pushed the mor--expose-environment-variables-to-run-arguments-in-custom-training-classes branch from 05ca77d to a1babec Compare May 6, 2021 20:35
sasha-gitg
sasha-gitg approved these changes May 10, 2021
View reviewed changes

@sasha-gitg sasha-gitg left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Morgan!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@sasha-gitg
sasha-gitg merged commit 7ae28b8 into googleapis:master May 10, 2021
@morgandu
morgandu deleted the mor--expose-environment-variables-to-run-arguments-in-custom-training-classes branch May 10, 2021 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@sasha-gitg sasha-gitg sasha-gitg approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: aiplatform Issues related to the AI Platform API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@morgandu @sasha-gitg
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.