Does the problem you met occur when using other codes?

  
      
      GitHub
  
  
    

bentrevett/pytorch-seq2seq 2

Tutorials on implementing a few sequence-to-sequence (seq2seq) models with PyTorch and TorchText. - bentrevett/pytorch-seq2seq


  
  
    
    
  
  



  
      
      GitHub
  
  
    

IBM/pytorch-seq2seq 2

An open source framework for seq2seq models in PyTorch. - IBM/pytorch-seq2seq


  
  
    
    
  
  



  
      
      GitHub
  
  
    

eladhoffer/seq2seq.pytorch 1

Sequence-to-Sequence learning using PyTorch. Contribute to eladhoffer/seq2seq.pytorch development by creating an account on GitHub.