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

data: add tests for blob sequence handling #3435

Merged
merged 4 commits into from
Mar 26, 2020

Conversation

wchargin
Copy link
Contributor

Summary:
Follow-up to #2991. Fixes #3434.

Test Plan:
Tests pass as written.

wchargin-branch: data-blob-sequence-tests

Summary:
Follow-up to #2991. Fixes #3434.

Test Plan:
Tests pass as written.

wchargin-branch: data-blob-sequence-tests
wchargin-source: fbd3302933cb0c50609df970edf137202723c769
wchargin-branch: data-blob-sequence-tests
wchargin-source: 664b9b53b60a76eacbd85ecca3335e62c172acf0
wchargin-branch: data-blob-sequence-tests
wchargin-source: e657e58995373fa202f2ec50573c23c1aa56c947
Copy link
Contributor

@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.

Thanks for the adding these!

for (name, color, description) in data:
image_1x1 = tf.constant([[[color]]], dtype=tf.uint8)
for i in xrange(1, 11):
k = 6 - abs(6 - i) # 1, .., 6, .., 2
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add a comment like "Use a non-monotonic sequence of sample sizes to test max_length calculation" or something? Wasn't obvious to me why the formula for k had to be this way otherwise.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, yes, sure. (Yes, that’s the reason.) Done.

wchargin-branch: data-blob-sequence-tests
wchargin-source: 317d4fc9ae0fb952360f5aa7a2f8c235ffc6b177
@wchargin wchargin merged commit aa4b9af into master Mar 26, 2020
@wchargin wchargin deleted the wchargin-data-blob-sequence-tests branch March 26, 2020 18:33
bileschi pushed a commit to bileschi/tensorboard that referenced this pull request Apr 15, 2020
Summary:
Follow-up to tensorflow#2991. Fixes tensorflow#3434.

Test Plan:
Tests pass as written.

wchargin-branch: data-blob-sequence-tests
bileschi pushed a commit that referenced this pull request Apr 15, 2020
Summary:
Follow-up to #2991. Fixes #3434.

Test Plan:
Tests pass as written.

wchargin-branch: data-blob-sequence-tests
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.

MultiplexerDataProvider blob code needs tests
3 participants