Skip to content

Comments

Test Reshape More Rigorously#3112

Merged
shelhamer merged 3 commits intoBVLC:masterfrom
shelhamer:test-reshape-harder
Sep 24, 2015
Merged

Test Reshape More Rigorously#3112
shelhamer merged 3 commits intoBVLC:masterfrom
shelhamer:test-reshape-harder

Conversation

@shelhamer
Copy link
Member

Follow-up to #3096.

  • Check that the output shape actually varies with the input shape while making sure the input and output num match.
  • Check small then large to catch potential issues with realloc.
  • EXPECT* instead of CHECK* to see full results.

master @ 58e4ea4 fails the new test while master @ head passes.

Copy link
Contributor

Choose a reason for hiding this comment

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

Could add an ASSERT_GT for the resulting output counts. (It's not immediately clear to me which one should give the bigger result.)

@jeffdonahue
Copy link
Contributor

Thanks for the test @shelhamer; LGTM besides above nits.

checking large then small can mask failure since the smaller shape
memory will fit within the larger shape.
Check that output spatial shape varies with input shape while the output
num matches the input num.
@shelhamer
Copy link
Member Author

@jeffdonahue thanks for reviewing -- updated accordingly for merge when CI passes.

@shelhamer
Copy link
Member Author

CI failed for an irrelevant timeout issue but I've checked this independently so it's merge time.

shelhamer added a commit that referenced this pull request Sep 24, 2015
[test] Test Reshape more rigorously
@shelhamer shelhamer merged commit ff6b288 into BVLC:master Sep 24, 2015
@shelhamer shelhamer deleted the test-reshape-harder branch September 24, 2015 03:38
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.

2 participants