-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Conversation
wchargin-branch: data-blob-sequence-tests wchargin-source: 664b9b53b60a76eacbd85ecca3335e62c172acf0
wchargin-branch: data-blob-sequence-tests wchargin-source: e657e58995373fa202f2ec50573c23c1aa56c947
There was a problem hiding this 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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
Summary: Follow-up to tensorflow#2991. Fixes tensorflow#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