cf2d46f50b55271fc4401a21bbf87cd59f6f4d97,gluon/models/shufflenet.py,ShuffleUnit,hybrid_forward,#ShuffleUnit#Any#Any#,98

Before Change



    def hybrid_forward(self, F, x):
        identity = x
        x = self.activ(self.compress_bn1(self.compress_conv1(x)))
        x = self.c_shuffle(x)
        x = self.dw_bn2(self.dw_conv2(x))
        x = self.expand_bn3(self.expand_conv3(x))
        if self.downsample:
            identity = self.avgpool(identity)
            x = F.concat(x, identity, dim=1)
        else:

After Change



    def hybrid_forward(self, F, x):
        identity = x
        x = self.compress_conv1(x)
        x = self.compress_bn1(x)
        x = self.activ(x)
        x = self.c_shuffle(x)
        x = self.dw_conv2(x)
        x = self.dw_bn2(x)
        x = self.expand_conv3(x)
        x = self.expand_bn3(x)
        if self.downsample:
            identity = self.avgpool(identity)
            x = F.concat(x, identity, dim=1)
        else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 18

Instances


Project Name: osmr/imgclsmob
Commit Name: cf2d46f50b55271fc4401a21bbf87cd59f6f4d97
Time: 2018-08-08
Author: osemery@gmail.com
File Name: gluon/models/shufflenet.py
Class Name: ShuffleUnit
Method Name: hybrid_forward


Project Name: osmr/imgclsmob
Commit Name: 3de5c6d5b821da9b0d058822ee805f6c2ca9a04c
Time: 2018-08-06
Author: osemery@gmail.com
File Name: gluon/models/menet.py
Class Name: MEModule
Method Name: hybrid_forward


Project Name: osmr/imgclsmob
Commit Name: cf2d46f50b55271fc4401a21bbf87cd59f6f4d97
Time: 2018-08-08
Author: osemery@gmail.com
File Name: pytorch/models/shufflenet.py
Class Name: ShuffleUnit
Method Name: forward


Project Name: osmr/imgclsmob
Commit Name: cf2d46f50b55271fc4401a21bbf87cd59f6f4d97
Time: 2018-08-08
Author: osemery@gmail.com
File Name: gluon/models/shufflenet.py
Class Name: ShuffleUnit
Method Name: hybrid_forward


Project Name: osmr/imgclsmob
Commit Name: 3de5c6d5b821da9b0d058822ee805f6c2ca9a04c
Time: 2018-08-06
Author: osemery@gmail.com
File Name: pytorch/models/menet.py
Class Name: MEModule
Method Name: forward