pytorch-nlp-notebooks
pytorch-nlp-notebooks copied to clipboard
Learn how to use PyTorch to solve some common NLP problems with deep learning.
Results
2
pytorch-nlp-notebooks issues
Sort by
recently updated
recently updated
newest added
1)In MAX_LEN you declared MAX_LEN ="128" which is a string and when you are passing it into function it is causing an error .So try to remove hyphens in it....
def forward(self, inputs): # Avoid breaking if the last batch has a different size batch_size = inputs.size(0) if batch_size != self.batch_size: self.batch_size = batch_size encoded = self.encoder(inputs) output, hidden =...