2575f672e6e6092ef380aa076d6009de68f2c60a,python/baseline/pytorch/lm/model.py,RNNLanguageModel,decode,#RNNLanguageModel#Any#Any#,109

Before Change


    def decode(self, emb, hidden):
        output, hidden = self.rnn(emb, hidden)
        output = self.rnn_dropout(output).contiguous()
        decoded = self.decoder(output.view(output.size(0)*output.size(1), output.size(2)))
        return decoded.view(output.size(0), output.size(1), decoded.size(1)), hidden

After Change


    def decode(self, emb, hidden):
        output, hidden = self.rnn(emb, hidden)
        output = self.rnn_dropout(output).contiguous()
        return output, hidden
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 14

Instances


Project Name: dpressel/mead-baseline
Commit Name: 2575f672e6e6092ef380aa076d6009de68f2c60a
Time: 2018-10-22
Author: dpressel@gmail.com
File Name: python/baseline/pytorch/lm/model.py
Class Name: RNNLanguageModel
Method Name: decode


Project Name: dpressel/mead-baseline
Commit Name: 18d194a5fd82cccab0b93a0af311e50fa086c7bd
Time: 2018-02-19
Author: dpressel@gmail.com
File Name: python/baseline/pytorch/lm/model.py
Class Name: WordLanguageModel
Method Name: forward


Project Name: dpressel/mead-baseline
Commit Name: 2575f672e6e6092ef380aa076d6009de68f2c60a
Time: 2018-10-22
Author: dpressel@gmail.com
File Name: python/baseline/pytorch/lm/model.py
Class Name: RNNLanguageModel
Method Name: decode


Project Name: pytorch/examples
Commit Name: 632d385444ae16afe3e4003c94864f9f97dc8541
Time: 2019-09-04
Author: hongyu@mail.com
File Name: word_language_model/model.py
Class Name: RNNModel
Method Name: forward