7fb209842b6fdff212cb861629eae60f5a890644,onmt/Models.py,Embeddings,__init__,#Embeddings#Any#Any#Any#Any#Any#Any#Any#Any#Any#,34
Before Change
super(Embeddings, self).__init__()
self.positional_encoding = position_encoding
if self.positional_encoding:
self.pe = self.make_positional_encodings(embedding_dim, 5000).cuda()
self.dropout = nn.Dropout(p=dropout)
self.padding_idx = padding_idx
self.feat_merge = feat_merge
After Change
super(Embeddings, self).__init__()
self.positional_encoding = position_encoding
if self.positional_encoding:
self.pe = self.make_positional_encodings(embedding_dim, 5000)
self.dropout = nn.Dropout(p=dropout)
self.padding_idx = padding_idx
self.feat_merge = feat_merge
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: OpenNMT/OpenNMT-py
Commit Name: 7fb209842b6fdff212cb861629eae60f5a890644
Time: 2017-09-05
Author: srush@sum1gpu01.rc.fas.harvard.edu
File Name: onmt/Models.py
Class Name: Embeddings
Method Name: __init__
Project Name: OpenNMT/OpenNMT-py
Commit Name: cc9990f27c34a01cb3926c3d6008fb5735cf24ad
Time: 2017-09-05
Author: srush@sum1gpu01.rc.fas.harvard.edu
File Name: onmt/Models.py
Class Name: Embeddings
Method Name: __init__
Project Name: OpenNMT/OpenNMT-py
Commit Name: 03cccd0967b3ed660fac93dd9d458543bc3294d5
Time: 2017-07-13
Author: s.gehrmann@outlook.com
File Name: onmt/Models.py
Class Name: Embeddings
Method Name: __init__