e0b84042ebe4e182b6dd7ab1673e00e0fbc3c8a6,pytorch/pytorchcv/models/common.py,SEBlock,__init__,#SEBlock#Any#Any#Any#Any#Any#,946

Before Change


            in_channels=mid_channels,
            out_channels=channels,
            bias=True)
        self.sigmoid = HSigmoid() if approx_sigmoid else nn.Sigmoid()

    def forward(self, x):
        w = self.pool(x)
        w = self.conv1(w)

After Change


            out_channels=channels,
            bias=True)
        // self.sigmoid = HSigmoid() if approx_sigmoid else nn.Sigmoid()
        self.sigmoid = get_activation_layer(out_activation)

    def forward(self, x):
        w = self.pool(x)
        w = self.conv1(w)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: osmr/imgclsmob
Commit Name: e0b84042ebe4e182b6dd7ab1673e00e0fbc3c8a6
Time: 2019-12-22
Author: osemery@gmail.com
File Name: pytorch/pytorchcv/models/common.py
Class Name: SEBlock
Method Name: __init__


Project Name: osmr/imgclsmob
Commit Name: 1f4ac7705100648faef0ef91c224007a0187f612
Time: 2019-12-23
Author: osemery@gmail.com
File Name: tensorflow2/tf2cv/models/common.py
Class Name: SEBlock
Method Name: __init__


Project Name: osmr/imgclsmob
Commit Name: 1f4ac7705100648faef0ef91c224007a0187f612
Time: 2019-12-23
Author: osemery@gmail.com
File Name: chainer_/chainercv2/models/common.py
Class Name: SEBlock
Method Name: __init__


Project Name: osmr/imgclsmob
Commit Name: 1f4ac7705100648faef0ef91c224007a0187f612
Time: 2019-12-23
Author: osemery@gmail.com
File Name: gluon/gluoncv2/models/common.py
Class Name: SEBlock
Method Name: __init__