3d0c71243d9a1d2b3cd342ab21b5bbd98d48354e,pyannote/audio/embedding/models.py,TristouNet,forward,#TristouNet#Any#,116
 
Before Change
                // initial hidden and cell states
                h = torch.zeros(self.num_directions_, batch_size, hidden_dim)
                c = torch.zeros(self.num_directions_, batch_size, hidden_dim)
                if gpu:
                    h = h.cuda()
                    c = c.cuda()
                hidden = (Variable(h, requires_grad=False),
                          Variable(c, requires_grad=False))
            elif self.rnn == "GRU":
                // initial hidden state
                h = torch.zeros(self.num_directions_, batch_size, hidden_dim)
After Change
            if self.rnn == "LSTM":
                // initial hidden and cell states
                h = torch.zeros(self.num_directions_, batch_size, hidden_dim,
                                device=device, requires_grad=False)
                c = torch.zeros(self.num_directions_, batch_size, hidden_dim,
                                device=device, requires_grad=False)
                hidden = (h, c)
            elif self.rnn == "GRU":
                // initial hidden state
                hidden = torch.zeros(

In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
 Project Name: pyannote/pyannote-audio
 Commit Name: 3d0c71243d9a1d2b3cd342ab21b5bbd98d48354e
 Time: 2018-06-29
 Author: bredin@limsi.fr
 File Name: pyannote/audio/embedding/models.py
 Class Name: TristouNet
 Method Name: forward
 Project Name: pyannote/pyannote-audio
 Commit Name: 3d0c71243d9a1d2b3cd342ab21b5bbd98d48354e
 Time: 2018-06-29
 Author: bredin@limsi.fr
 File Name: pyannote/audio/embedding/models.py
 Class Name: TristouNet
 Method Name: forward
 Project Name: pyannote/pyannote-audio
 Commit Name: 038cba433c519b79f8bacae85d92380afc9cc9a6
 Time: 2018-06-29
 Author: bredin@limsi.fr
 File Name: pyannote/audio/labeling/models.py
 Class Name: StackedRNN
 Method Name: forward
 Project Name: pyannote/pyannote-audio
 Commit Name: 3d0c71243d9a1d2b3cd342ab21b5bbd98d48354e
 Time: 2018-06-29
 Author: bredin@limsi.fr
 File Name: pyannote/audio/embedding/models.py
 Class Name: ClopiNet
 Method Name: forward