Solved by Nikronic in post #2 
              
              
                Hi, 
Transform on tensors has been added to PyTorch 1.7, released few days ago, you need to update torchvision package to 0.8. Simply, update to latest stable build. 
Bests