I already got my answer! I must add “batch_first:True”
  

      stackoverflow.com
  

  
      
    
  


  Attention does not seem to be applied at TransformerEncoderLayer and MultiheadAttention PyTorch 1



  pytorch



  asked by
  
  
    Rick Vink
  
  on 08:57AM - 02 Jan 22 UTC