I found this to be the most useful answer:

  

      stackoverflow.com
  

  
      
    
  


  Difference between src_mask and src_key_padding_mask 45



  pytorch, transformer



  
  answered by
  
    Charlie Parker
  
  on 03:36PM - 15 Jul 21 UTC