42577c597fb82f8f022feda31649fb0a04bf2ffb,chainercv/links/model/resnet/building_block.py,BottleneckA,__call__,#BottleneckA#Any#,87

Before Change


            self.bn4 = L.BatchNormalization(out_channels)

    def __call__(self, x):
        h1 = F.relu(self.bn1(self.conv1(x)))
        h1 = F.relu(self.bn2(self.conv2(h1)))
        h1 = self.bn3(self.conv3(h1))
        h2 = self.bn4(self.conv4(x))
        return F.relu(h1 + h2)

After Change


                self.shortcut = shortcut

    def __call__(self, x):
        h = self.conv1(x)
        h = self.conv2(h)
        h = self.conv3(h)

        if hasattr(self, "shortcut"):
            residual = self.shortcut(x)
        else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: chainer/chainercv
Commit Name: 42577c597fb82f8f022feda31649fb0a04bf2ffb
Time: 2017-10-04
Author: yuyuniitani@gmail.com
File Name: chainercv/links/model/resnet/building_block.py
Class Name: BottleneckA
Method Name: __call__


Project Name: rusty1s/pytorch_geometric
Commit Name: e7512f6bd434ef89296298a8bd16044917d7ce68
Time: 2020-09-23
Author: matthias.fey@tu-dortmund.de
File Name: examples/ppi.py
Class Name: Net
Method Name: forward


Project Name: rusty1s/pytorch_geometric
Commit Name: a7fd67bd27f83cf7c9438626bb642e1928dbe814
Time: 2020-09-23
Author: matthias.fey@tu-dortmund.de
File Name: examples/ppi.py
Class Name: Net
Method Name: forward


Project Name: chainer/chainercv
Commit Name: 9cc885ab04b19221b53ce47b6c8f053b25942fcf
Time: 2019-02-20
Author: yuyuniitani@gmail.com
File Name: chainercv/links/model/mask_rcnn/mask_head.py
Class Name: MaskHead
Method Name: __call__