-
-
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
Support using colon to omit a dimension in reshape #19919
Conversation
Return an array with the same data as the given array, but with different dimensions. | ||
|
||
The new dimensions may be specified either as a list of arguments or as a shape | ||
tuple. Up to one dimension may be specified with a `:`, in which case its |
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.
at most one?
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.
(I'd change it in the error message too)
e254c01
to
2bfbb61
Compare
2bfbb61
to
c5a444e
Compare
This would be useful, did anyone have opinions (more specific than the hooray's) on this? |
just in case? @nanosoldier |
This is a very useful feature. So it would be great to have this for 0.6. Should be added to NEWS once merged. |
Your benchmark job has completed - possible performance regressions were detected. A full report can be found here. cc @jrevels |
I think those are just noise, but for good measure @nanosoldier |
Those noisy results are the ones that #20025 will fix. |
Your benchmark job has completed - possible performance regressions were detected. A full report can be found here. cc @jrevels |
NEWS.md added! |
Closes #16790.