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

histogram: clean up v2 code #5443

Merged
merged 6 commits into from Dec 2, 2021
Merged

histogram: clean up v2 code #5443

merged 6 commits into from Dec 2, 2021

Conversation

yatbear
Copy link
Member

@yatbear yatbear commented Nov 30, 2021

Remove V2 code.

Ran internally: cl/413690112

#histogram #tpu

@yatbear yatbear requested a review from nfelt November 30, 2021 22:52
@yatbear yatbear marked this pull request as ready for review December 1, 2021 21:28
Copy link
Collaborator

@nfelt nfelt left a comment

Choose a reason for hiding this comment

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

Assumed this was ready for review since it was requested, but could you also mark it non-draft if that's the case?

Edit: NVM, I must have had a stale view.


# Export V3 versions.
histogram_v3 = summary_v2.histogram_v3

# Export the default versions.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's change this line to say "Export V3 versions." now?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@@ -46,217 +38,6 @@
DEFAULT_BUCKET_COUNT = 30


def histogram_v2(name, data, step=None, buckets=None, description=None):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Now that we're removing histogram_v2, I think it'd make sense to rename histogram_v3 to just histogram (what the v2 one was called prior to the migration). We can then remove the histogram = histogram_v3 line at the bottom.

When we do that, it might make sense to add a #-style comment (not in the docstring, which is public, but just for our own reference) that mentions that this new histogram is actually an updated v3 format, not the v2 format, as the filename would imply.

Copy link
Member Author

Choose a reason for hiding this comment

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

Renamed and added the comment.

@yatbear yatbear merged commit 816bb7c into tensorflow:master Dec 2, 2021
@yatbear yatbear deleted the summary_v3 branch December 2, 2021 20:04
yatbear added a commit to yatbear/tensorboard that referenced this pull request Mar 27, 2023
dna2github pushed a commit to dna2fork/tensorboard that referenced this pull request May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants