Open dennisushi opened 1 year ago
In numpy you can reverse an array as arr[::-1] along any dimension. The same in torch raises an error: ValueError: step must be greater than zero. It would be useful if both operated the same way.
numpy
arr[::-1]
torch
ValueError: step must be greater than zero
No response
cc @mruberry @rgommers
I can confirm that this is still not supported
🚀 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