No fix yet. A bugreport has been filed at:

  
      github.com/pytorch/pytorch
  
  
    
  
	  
  

  
    
      WeightedRandomSampler with replacement=False incredibly slow 22
    

    
      
        opened 
        
          
        
        Jan 15, 2020
      
      


      
        
          
          michielkallenberg
        
      
    
  



  🐛 Bug
WeightedRandomSampler with replacement=False incredibly slow
To Reproduce
Steps to reproduce the behavior:
import torch,torchvision list(torch.utils.data.WeightedRandomSampler([0.1, 0.9, 0.4, 0.7, 3.0, 0.6]*10000000, 500, replacement=False))
Expected behavior
Above...



    topic: performance
    triaged