-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
ARROW-5813: [C++] Fix TensorEquals for different contiguous tensors #4774
Conversation
e1b9b9e
to
e7ef17d
Compare
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.
Looks good on the principle, but I think testing should be a bit more comprehensive perhaps?
@@ -155,6 +155,49 @@ TEST(TestTensor, CountNonZeroForNonContiguousTensor) { | |||
AssertCountNonZero(t, 8); | |||
} | |||
|
|||
TEST(TestTensor, Equals) { |
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.
Is it possible to also test unequal tensors? Contiguous, non-contiguous...
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.
Oh, I forgot to write unequal cases.
I added them at d40c3c7
By the way, |
I filed ARROW-5830. |
Codecov Report
@@ Coverage Diff @@
## master #4774 +/- ##
==========================================
+ Coverage 86.42% 89.06% +2.64%
==========================================
Files 994 719 -275
Lines 138595 99883 -38712
Branches 1418 0 -1418
==========================================
- Hits 119776 88960 -30816
+ Misses 18457 10923 -7534
+ Partials 362 0 -362
Continue to review full report at Codecov.
|
Thanks @mrkn ! Will merge. |
This change makes TensorEquals correctly calculate the equality of a row-major tensor and a column-major tensor. Author: Kenta Murata <[email protected]> Closes #4774 from mrkn/tensor_equals_for_different_contiguous and squashes the following commits: d40c3c7 <Kenta Murata> Add unequal expectations e7ef17d <Kenta Murata> Fix TensorEquals for different contiguous tensors
This change makes TensorEquals correctly calculate the equality of a row-major tensor and a column-major tensor. Author: Kenta Murata <[email protected]> Closes #4774 from mrkn/tensor_equals_for_different_contiguous and squashes the following commits: d40c3c7 <Kenta Murata> Add unequal expectations e7ef17d <Kenta Murata> Fix TensorEquals for different contiguous tensors
This change makes TensorEquals correctly calculate the equality of a row-major tensor and a column-major tensor.