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: Updating the Tensorboard uploader to use the new batch write API so it runs more efficiently #710

Merged
merged 1 commit into from Sep 21, 2021

Conversation

yfang1
Copy link
Contributor

@yfang1 yfang1 commented Sep 15, 2021

b/190431961.
go/tb-uploader-speedup

Ran the new code for scalar, tensor, blob data. Looks fine to me.

@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 15, 2021
@product-auto-label product-auto-label bot added the api: aiplatform Issues related to the AI Platform API. label Sep 15, 2021
@yfang1 yfang1 changed the title [feat] Updating the Tensorboard uploader to use the new batch write API so it runs more efficiently feat: Updating the Tensorboard uploader to use the new batch write API so it runs more efficiently Sep 15, 2021
self._run_name_to_run_resource_name: Dict[str, str] = {}
self._run_tag_name_to_time_series_name: Dict[(str, str), str] = {}

def get_run_resource_name(self, run_name: str):
Copy link
Contributor

Choose a reason for hiding this comment

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

better to rename it as create_or_get_run_resource_name ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It doesn't actually "create" a resource name though, but I see what you're saying.

Gonna leave the name as is, but will add doc string to describe what it does.

@yfang1 yfang1 merged commit 9d1b01a into googleapis:main Sep 21, 2021
@yfang1 yfang1 deleted the optimize branch September 21, 2021 21:20
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