image.rotate(Tensor src,Tensor dst,number theta) rotates the Tensor src by angle theta and stores the result in the pre-allocated Tensor dst.

src and dst cannot be the same.