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: pre batch creating TensorboardRuns and TensorboardTimeSeries in one_shot mode to speed up uploading #772

Merged
merged 2 commits into from Oct 21, 2021

Conversation

yfang1
Copy link
Contributor

@yfang1 yfang1 commented Oct 14, 2021

The existing uploader iterates through the log dir and creates TensorboardRun and TensorboardTimeSeries on demand, one at a time, which slows down the uploading quite a bit.

This PR seeks to improve the one_shot performance by iterating through the log dir first, collects the Runs and TimeSeries ahead of time, batch create ahead of time so fewer RPCs are sent.

@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 14, 2021
@product-auto-label product-auto-label bot added the api: aiplatform Issues related to the AI Platform API. label Oct 14, 2021
@karthikv2k karthikv2k self-requested a review October 14, 2021 23:35
google/cloud/aiplatform/tensorboard/uploader.py Outdated Show resolved Hide resolved
tests/unit/aiplatform/test_uploader.py Outdated Show resolved Hide resolved
google/cloud/aiplatform/tensorboard/uploader.py Outdated Show resolved Hide resolved
google/cloud/aiplatform/tensorboard/uploader.py Outdated Show resolved Hide resolved
google/cloud/aiplatform/tensorboard/uploader_utils.py Outdated Show resolved Hide resolved
google/cloud/aiplatform/tensorboard/uploader_utils.py Outdated Show resolved Hide resolved
google/cloud/aiplatform/tensorboard/uploader_utils.py Outdated Show resolved Hide resolved
google/cloud/aiplatform/tensorboard/uploader_utils.py Outdated Show resolved Hide resolved
@yfang1 yfang1 merged commit c9f68c6 into googleapis:main Oct 21, 2021
@yfang1 yfang1 deleted the batch_create branch October 21, 2021 04:38
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.

None yet

3 participants