fc1c8a5597682720a3812e4204c19ad963497986,test/test_models.py,TestModel,ntmmodel_forward,#TestModel#Any#Any#Any#,103

Before Change


        embeddings = make_embeddings(opt, word_padding_idx,
                                     feats_padding_idx, len(vocab),
                                     for_encoder=True)
        enc = make_encoder(opt.encoder_type, opt.brnn,
                           opt.rnn_type, opt.enc_layers,
                           opt.rnn_size, opt.cnn_kernel_width,
                           opt.dropout, embeddings)

        embeddings = make_embeddings(opt, word_padding_idx,
                                     feats_padding_idx, len(vocab),
                                     for_encoder=False)

After Change


        embeddings = make_embeddings(opt, word_padding_idx,
                                     feats_padding_idx, len(vocab),
                                     for_encoder=True)
        enc = make_encoder(opt, embeddings)

        embeddings = make_embeddings(opt, word_padding_idx,
                                     feats_padding_idx, len(vocab),
                                     for_encoder=False)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 11

Instances


Project Name: OpenNMT/OpenNMT-py
Commit Name: fc1c8a5597682720a3812e4204c19ad963497986
Time: 2017-09-11
Author: nasa4836@gmail.com
File Name: test/test_models.py
Class Name: TestModel
Method Name: ntmmodel_forward


Project Name: OpenNMT/OpenNMT-py
Commit Name: fc1c8a5597682720a3812e4204c19ad963497986
Time: 2017-09-11
Author: nasa4836@gmail.com
File Name: tools/extract_embeddings.py
Class Name:
Method Name: main


Project Name: OpenNMT/OpenNMT-py
Commit Name: fc1c8a5597682720a3812e4204c19ad963497986
Time: 2017-09-11
Author: nasa4836@gmail.com
File Name: onmt/ModelConstructor.py
Class Name:
Method Name: make_base_model


Project Name: OpenNMT/OpenNMT-py
Commit Name: fc1c8a5597682720a3812e4204c19ad963497986
Time: 2017-09-11
Author: nasa4836@gmail.com
File Name: test/test_models.py
Class Name: TestModel
Method Name: encoder_forward


Project Name: OpenNMT/OpenNMT-py
Commit Name: fc1c8a5597682720a3812e4204c19ad963497986
Time: 2017-09-11
Author: nasa4836@gmail.com
File Name: test/test_models.py
Class Name: TestModel
Method Name: ntmmodel_forward