Reversing along a dimension, similarly to numpy #95160
Labels
feature
A request for a proper, new feature.
module: advanced indexing
Related to x[i] = y, index functions
module: numpy
Related to numpy support, and also numpy compatibility of our operators
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
🚀 The feature, motivation and pitch
In
numpy
you can reverse an array asarr[::-1]
along any dimension. The same intorch
raises an error:ValueError: step must be greater than zero
. It would be useful if both operated the same way.Alternatives
No response
Additional context
No response
cc @mruberry @rgommers
The text was updated successfully, but these errors were encountered: