-
Notifications
You must be signed in to change notification settings - Fork 27
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
Fix shape in View::deepCopyView
#1389
Conversation
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 fix @gunney1
Would it be possible to add a regression test for this? e.g. a case that failed w/ the old way that passes w/ this fix.
This change removes the need for fixing the shape after allocating.
6240fe6
to
ed269dd
Compare
Regression test added. |
7308381
to
d1e34f5
Compare
Deep-copying a view fails to set the destination shape to the source's.
This bug fix follows the data allocation with a call to correctly set the destination shape.
It also fixes comments and prefixes some variable names with "src" or "dst" to clarify their role in the copy.