Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add one shot profile uploads to tensorboard uploader. #704

Merged
merged 34 commits into from Oct 11, 2021

Conversation

mkovalski
Copy link
Contributor

Add one shot profile uploading to tensorboard uploader.

  • Adds a profile request sender to upload any profile logs.
  • Move common utilities to a uploader_utils.py file
  • Create RunResourceManager to be shared via request senders.
  • Add _FileRequestSender for uploading non-event based items to blob storage backend.

While this currently allows for only one shot uploads, the ProfileRequestSender class will be reused so profiles can be uploaded on demand via tensorboard.gcp

Fixes #519

@product-auto-label product-auto-label bot added the api: aiplatform Issues related to the AI Platform API. label Sep 14, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 14, 2021
@mkovalski mkovalski changed the title Add one shot profile uploads to tensorboard uploader. feat: Add one shot profile uploads to tensorboard uploader. Sep 14, 2021
@mkovalski mkovalski self-assigned this Sep 21, 2021
google/cloud/aiplatform/tensorboard/uploader.py Outdated Show resolved Hide resolved
google/cloud/aiplatform/tensorboard/uploader_utils.py Outdated Show resolved Hide resolved
@yfang1 yfang1 self-requested a review September 21, 2021 19:14
Copy link
Member

@sasha-gitg sasha-gitg left a comment

Choose a reason for hiding this comment

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

Mainly LGTM. Added one more comment.

google/cloud/aiplatform/tensorboard/__init__.py Outdated Show resolved Hide resolved
google/cloud/aiplatform/tensorboard/uploader_utils.py Outdated Show resolved Hide resolved
@sasha-gitg sasha-gitg added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 8, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 8, 2021
@mkovalski mkovalski added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 11, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 11, 2021
@sasha-gitg sasha-gitg merged commit a83f253 into googleapis:main Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: aiplatform Issues related to the AI Platform API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add remote tensorflow profiling to training jobs.
4 participants