-
Notifications
You must be signed in to change notification settings - Fork 54
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
Bug/squeeze split semantics #562
Conversation
Codecov Report
@@ Coverage Diff @@
## master #562 +/- ##
==========================================
+ Coverage 96.44% 96.45% +0.01%
==========================================
Files 75 75
Lines 15130 15145 +15
==========================================
+ Hits 14592 14608 +16
+ Misses 538 537 -1
Continue to review full report at Codecov.
|
63bab7e
to
ec2094c
Compare
ec2094c
to
81026e8
Compare
38287e8
to
99904c6
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.
approval pending the addition of 1 more test (or a small change of one). can you make one of them axis=None
? just for completeness
sorry, these tests are already included. merging now |
Description
Changes to manipulations.squeeze() to follow split semantics. In the previous version, the output tensor was being "gathered" and the function returned a non-distributed tensor.Split semantics for squeeze() are now as follows: a distributed tensor will keep its original split dimension after "squeezing", which, depending on the squeeze axis, may result in a lower numerical 'split' value, as in:
The edge case
x.split = axis
returns a non-distributed tensor.Issue/s resolved: #561, #273
Changes proposed:
Type of change
Bug fix, breaking change.
Due Diligence
Does this change modify the behaviour of other functions? If so, which?
yes if they rely on ht.squeeze() returning a non-distributed tensor.