7db6246fae613a5abf1fbea0b2b987b615ae5a13,visdialch/encoders/lf.py,LateFusionEncoder,forward,#LateFusionEncoder#,42
Before Change
self.config["img_feature_size"])
// embed questions
ques = ques.view(-1, ques.size(2))
ques_embed = self.word_embed(ques)
ques_embed = self.ques_rnn(ques_embed, batch["ques_len"])
After Change
ques_embed = self.ques_rnn(ques_embed, batch["ques_len"])
// embed history
hist = hist.view(batch_size * num_rounds, max_sequence_length * 20)
hist_embed = self.word_embed(hist)
hist_embed = self.hist_rnn(hist_embed, batch["hist_len"])
fused_vector = torch.cat((img, ques_embed, hist_embed), 1)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: batra-mlp-lab/visdial-challenge-starter-pytorch
Commit Name: 7db6246fae613a5abf1fbea0b2b987b615ae5a13
Time: 2018-12-26
Author: karandesai281196@gmail.com
File Name: visdialch/encoders/lf.py
Class Name: LateFusionEncoder
Method Name: forward
Project Name: ikostrikov/pytorch-a2c-ppo-acktr
Commit Name: 0e63a5cd9e6f50d996a2491a300f760c681d4349
Time: 2018-07-24
Author: ewijmans2@gmail.com
File Name: model.py
Class Name: CNNBase
Method Name: forward
Project Name: jadore801120/attention-is-all-you-need-pytorch
Commit Name: 0b0eabbfd972c9e3f6323bff9d39ac5fc3ba9cc7
Time: 2018-08-23
Author: yhhuang@nlg.csie.ntu.edu.tw
File Name: transformer/Translator.py
Class Name: Translator
Method Name: translate_batch