Hi Eran!



 eranb:

I want to rotate a cube with a size of torch.Size([74, 626, 766]).


If by “cube” you mean that you interpret your 74x626x766 tensor
as a three-dimensional “image,” where each element of the tensor
is a “voxel,” then it is not especially simple to rotate it, and I am not
aware of anything built in to pytorch that will do it for you.
To rotate an image (three-dimensional or not), you have to do the
actual rotation, interpolate pixels (voxels), pad or crop, etc.
If your “cube” is something different than I outlined above, could
you describe your use case in more detail?
Best.
K. Frank