55c80a0092f85b7fa0f3be4e1cff14defc7b96fd,onmt/Models.py,Encoder,__init__,#Encoder#Any#Any#Any#,128

Before Change


        self.hidden_size = opt.rnn_size // self.num_directions

        super(Encoder, self).__init__()
        self.embeddings = Embeddings(opt, dicts, feature_dicts)

        input_size = self.embeddings.embedding_size

        // The Encoder RNN.

After Change


        self.hidden_size = opt.rnn_size // self.num_directions

        super(Encoder, self).__init__()
        self.embeddings = Embeddings(
            dicts, feature_dicts,
            opt.word_vec_size, opt.pre_word_vecs_enc, opt.fix_word_vecs_enc,
            opt.feat_merge, opt.feat_vec_size, opt.feat_vec_exponent,
            opt.position_encoding, opt.gpus, opt.dropout)

        input_size = self.embeddings.embedding_size

        // The Encoder RNN.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 13

Instances


Project Name: OpenNMT/OpenNMT-py
Commit Name: 55c80a0092f85b7fa0f3be4e1cff14defc7b96fd
Time: 2017-08-16
Author: bpeters@coli.uni-saarland.de
File Name: onmt/Models.py
Class Name: Encoder
Method Name: __init__


Project Name: OpenNMT/OpenNMT-py
Commit Name: 275f64eacf5787fd8c09592fa4ce18d0d14c6861
Time: 2017-08-16
Author: bpeters@coli.uni-saarland.de
File Name: test/test_models.py
Class Name: TestModel
Method Name: embeddings_forward


Project Name: OpenNMT/OpenNMT-py
Commit Name: 55c80a0092f85b7fa0f3be4e1cff14defc7b96fd
Time: 2017-08-16
Author: bpeters@coli.uni-saarland.de
File Name: onmt/Models.py
Class Name: Encoder
Method Name: __init__


Project Name: OpenNMT/OpenNMT-py
Commit Name: 55c80a0092f85b7fa0f3be4e1cff14defc7b96fd
Time: 2017-08-16
Author: bpeters@coli.uni-saarland.de
File Name: onmt/Models.py
Class Name: Decoder
Method Name: __init__