Reversing the order of elements along some axis using Einops? #203
-
I think Einops operations are really comfortable and easy to use. So, I wanted to use einops for any kind of tensor manipulation. If I'm not mistaken, it seems that operation such as dividing an image into two halves and switching their place is not possible using only einops operations. So, is there a way to do some flips using einops? If not, is there any plans for future implementations? Or should I just use some other functions provided by the framework I'm using? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi @TerryRyu, thank you for kind words. There is currently no such operation as reversal of axes. For anyone seeking this feature I recommend upvoting this question. |
Beta Was this translation helpful? Give feedback.
-
I reverse my axes all the time. Upvoted. :) |
Beta Was this translation helpful? Give feedback.
-
I could use this. |
Beta Was this translation helpful? Give feedback.
Hi @TerryRyu, thank you for kind words.
There is currently no such operation as reversal of axes.
I've had an experimental version of reversal for numpy, but seems like a too narrow case to include. Also, behavior would be inevtiably very different across frameworks (e.g. for numpy that's essentially a free operation, while torch will create a full copy).
For anyone seeking this feature I recommend upvoting this question.