e93074d9e0d9e26119872da69fc663dd3a7779f3,onmt/Models.py,Decoder,forward,#Decoder#Any#Any#Any#Any#,100
Before Change
// self.input_feed=False
outputs = []
output = init_output
for i, emb_t in enumerate(emb.chunk(emb.size(0), dim=0)):
emb_t = emb_t.squeeze(0)
if self.input_feed:
emb_t = torch.cat([emb_t, output], 1)
After Change
// self.input_feed=False
outputs = []
output = init_output
for i, emb_t in enumerate(emb.split(1)):
emb_t = emb_t.squeeze(0)
if self.input_feed:
emb_t = torch.cat([emb_t, output], 1)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: OpenNMT/OpenNMT-py
Commit Name: e93074d9e0d9e26119872da69fc663dd3a7779f3
Time: 2017-03-14
Author: bryan.mccann.is@gmail.com
File Name: onmt/Models.py
Class Name: Decoder
Method Name: forward
Project Name: pytorch/examples
Commit Name: 62555a6f72e014341a1d85fccba799e7f35b4d63
Time: 2017-01-11
Author: alerer@fb.com
File Name: OpenNMT/train.py
Class Name:
Method Name: memoryEfficientLoss
Project Name: pytorch/examples
Commit Name: 4d137ed0516d93b6770912452c51e7db32dff74e
Time: 2017-03-14
Author: bryan.mccann.is@gmail.com
File Name: OpenNMT/onmt/Models.py
Class Name: Decoder
Method Name: forward