6db2a40542917f11509cbdc79c882049931d4f86,src/agent.py,LstmAgent,read,#LstmAgent#Any#,114

Before Change


        // append new hidded states to the current list of the hidden states
        self.lang_hs.append(lang_hs.squeeze(1))
        // first add the special "THEM:" token
        self.words.append(self.model.word2var("THEM:"))
        // then read the utterance
        self.words.append(Variable(inpt))
        assert (torch.cat(self.words).size()[0] == torch.cat(self.lang_hs).size()[0])

After Change


        // append new hidded states to the current list of the hidden states
        self.lang_hs.append(lang_hs.squeeze(1))
        // first add the special "THEM:" token
        self.words.append(self.model.word2var("THEM:").unsqueeze(1))
        // then read the utterance
        self.words.append(Variable(inpt))
        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: LstmAgent
Method Name: read


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: 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