6db2a40542917f11509cbdc79c882049931d4f86,src/agent.py,BatchedRolloutAgent,write,#BatchedRolloutAgent#,255

Before Change


                lang_h, sent_lang_hs, move = states[sent]
                self.lang_h = lang_h
                self.lang_hs.append(sent_lang_hs)
                self.words.append(self.model.word2var("YOU:"))
                self.words.append(self.model.to_device(Variable(move)))
                assert (torch.cat(self.words).size()[0] == torch.cat(self.lang_hs).size()[0])

After Change


                lang_h, sent_lang_hs, move = states[sent]
                self.lang_h = lang_h
                self.lang_hs.append(sent_lang_hs)
                self.words.append(self.model.word2var("YOU:").unsqueeze(1))
                self.words.append(self.model.to_device(Variable(move)))
                assert (torch.cat(self.words).size()[0] == torch.cat(self.lang_hs).size()[0])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 3

Instances


Project Name: facebookresearch/end-to-end-negotiator
Commit Name: 6db2a40542917f11509cbdc79c882049931d4f86
Time: 2018-03-20
Author: bkgoksel@gmail.com
File Name: src/agent.py
Class Name: BatchedRolloutAgent
Method Name: write


Project Name: facebookresearch/end-to-end-negotiator
Commit Name: 718f7331c8cbe4b5273614c832439dd156ff4614
Time: 2018-03-20
Author: bkgoksel@gmail.com
File Name: src/agent.py
Class Name: LstmRolloutAgent
Method Name: write


Project Name: facebookresearch/end-to-end-negotiator
Commit Name: 6db2a40542917f11509cbdc79c882049931d4f86
Time: 2018-03-20
Author: bkgoksel@gmail.com
File Name: src/agent.py
Class Name: LstmRolloutAgent
Method Name: write


Project Name: facebookresearch/end-to-end-negotiator
Commit Name: 6db2a40542917f11509cbdc79c882049931d4f86
Time: 2018-03-20
Author: bkgoksel@gmail.com
File Name: src/agent.py
Class Name: RlAgent
Method Name: write


Project Name: facebookresearch/end-to-end-negotiator
Commit Name: 6db2a40542917f11509cbdc79c882049931d4f86
Time: 2018-03-20
Author: bkgoksel@gmail.com
File Name: src/agent.py
Class Name: LstmAgent
Method Name: write


Project Name: facebookresearch/end-to-end-negotiator
Commit Name: 6db2a40542917f11509cbdc79c882049931d4f86
Time: 2018-03-20
Author: bkgoksel@gmail.com
File Name: src/agent.py
Class Name: LstmAgent
Method Name: read