-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
RFC: make reshape
always share data
#15916
Conversation
A lot of this is |
collect{T}(::Type{T}, itr::Dims) = collect(Generator(T, itr)) | ||
|
||
""" | ||
collect(iterator, dims) |
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.
needs an rst signature and a genstdlib run
Good. IIRC (it's been a while), one of the few current sources of test failure in #15449 is that it goes whole-hog and even avoids calling the C code that reshapes The immediate decision we have to make is this: there are some tests that explicitly check the return type of |
I think we will do (3) in any case. I also think we should do (2) to make the transition smoother. |
Fixes #4211. I added
collect(itr, dims)
to make it easier to replace copying calls to reshape. I also had to revert #15251, sincesqueeze
callsreshape
. I assume we want it to have the same behavior. If not, I can add back a copyingsqueeze
for sparse.