opened:

  
      github.com/pytorch/pytorch
  
  
    
  
	  
  

  
    
      padding_idx and provided weights in nn.Embedding and nn.functional.embedding  15
    

    
      
        opened 
        
          
        
        Oct 20, 2020
      
      


      
        
          
          RoySadaka
        
      
    
  



  1) nn.Embedding documentation says:
padding_idx (int, optional): If given, pads the output with the embedding vector at :attr:padding_idx
(initialized to zeros) whenever it...