check out this
  

      stackoverflow.com
  

  
      
    
  


  torchvision.transforms.RandomRotation fill argument not working 1



  python, pytorch, data-augmentation, torchvision



  asked by
  
  
    user930958
  
  on 11:23PM - 04 May 21 UTC


  

  
    
    
  

  



You’re probably using torchvision v0.8.2 or older. This issue was fixed 5 months ago in the PR #2904 1. If you are not using v0.9.0 or newer, you won’t be able to use fill in a Tensor input 
So, the only solution is to upgrade your torchvision.