github.com/pytorch/pytorch
  
  
    
  
	  
  

  
    
      GPU torch.multinomial produces an out-of-bounds index 266
    

    
      
        opened 
        
          
        
        Feb 27, 2017
      
      

        
          closed 
        
          
        
        Mar 1, 2017
      
        

      
        
          
          ankitkv
        
      
    
  



  torch.multinomial on the GPU can produce indices that are out of bounds.
Consider the following code:
from __future__ import print_function
import torch
i = 0
while...



    high priority


  
  
    
    
  
  


Do i have the error like this?