practical-pytorch
practical-pytorch copied to clipboard
Go to https://github.com/pytorch/tutorials - this repo is deprecated and no longer maintained
In the tutorial, I find that the "attention" mechanism is a fake attention, since the calculated attention weights have no relationship with the encoder output vectors. The implementation in the...
In the Char RNN classification I had some questions: 1. Why have not split the dataset into train and test/validation set to check the performance ? 2. How can we...
Convert 0 dimension tensor to number.
In the train.py script, Line 45: "return output, loss.data[0]", ---> "return output, loss.item()" is suggested.
there was error occured: ``` in score(self, hidden, encoder_output) 35 elif self.method == 'general': 36 energy = self.attn(encoder_output) ---> 37 energy = hidden.dot(energy) 38 return energy 39 RuntimeError: 1D tensors...
Why does the KeyError occurs?I can not understand. Can you help me?Thank you  
Fix a bug in evaluate()