Solved by Nikronic in post #2 
              
              
                Hi, 
Obviously, as you have mentioned, transferring every tensor between cpu and gpu to use available methods which only works for PIL images are is proper. 
As far as I know, there is no built-in function for Crop but for others we have a solution. 
One solution is to copy the source code and just …