0168d5298ab0878818e44b311678ff683f5ee0e2,pytorch/pytorchcv/models/others/oth_irevnet2.py,iRevNet,forward,#iRevNet#Any#,200

Before Change


        n = self.in_ch // 2
        if self.init_ds != 0:
            x = self.init_psi.forward(x)
        out = (x[:, :n, :, :], x[:, n:, :, :])
        for block in self.stack:
            out = block.forward(out)
        out_bij = merge(out[0], out[1])
        out = F.relu(self.bn1(out_bij))

After Change


         irevnet forward 
        x = self.init_psi.forward(x)

        out = torch.chunk(x, chunks=2, dim=1)
        for block in self.stack:
            out = block.forward(out)
        out_bij = torch.cat((out[0], out[1]), dim=1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: osmr/imgclsmob
Commit Name: 0168d5298ab0878818e44b311678ff683f5ee0e2
Time: 2019-03-04
Author: osemery@gmail.com
File Name: pytorch/pytorchcv/models/others/oth_irevnet2.py
Class Name: iRevNet
Method Name: forward


Project Name: allenai/allennlp
Commit Name: 4f2db42f4077942e0b012300b70807296d0a6b88
Time: 2018-05-18
Author: martin.tutek@gmail.com
File Name: allennlp/modules/highway.py
Class Name: Highway
Method Name: forward


Project Name: silvandeleemput/memcnn
Commit Name: 98e790696877d8065842d83f1819ae9c989a8c98
Time: 2018-06-06
Author: sil.vandeleemput@radboudumc.nl
File Name: memcnn/models/revop.py
Class Name: ReversibleBlockFunction
Method Name: backward