-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Rotating Tensors/Denses, similar to numpy implementation #37
Comments
This is what was used for my AlphaGo reimplementation:
I agree it needs to be added. I don't quite have the bandwidth right now but these two snippets may be useful |
I can take this issue. I am a newbie in terms of open-source collaboration so please bear with me :) I might start with dense matrices first and then move on to tensors. The rotate function can be implemented in dense_matop_memmove.go and/or dense_matop.go by allocating a new matrix and/or performing an "in-place" transformation, respectively. Which implementation should I aim for first? Note: The use of the term "in-place" is a slight abuse of notation |
safety first, so Send PR :) |
Numpy has a way to rotate matrices by increments of 90 degrees using their rot90 method that uses transposes and flips.
There is a transpose method for Tensors, but no way of flipping the Tensor that I see.
Is there a way of properly rotating a Tensor/Dense currently, other than through manual iteration over the data? If not, should this be added?
The text was updated successfully, but these errors were encountered: