165756cc19a19db0e75c128ccc97eff3579af1c3,examples/nas/proxylessnas/ops.py,MobileInvertedResidualBlock,forward,#MobileInvertedResidualBlock#Any#,41

Before Change


            res = out
        else:
            conv_x = out
            skip_x = self.shortcut(x)
            res = skip_x + conv_x
        return res

After Change


        if torch.sum(torch.abs(out)).item() == 0 and x.size() == out.size():
            // is zero layer
            return x
        if self.shortcut is None:
            return out
        return out + self.shortcut(x)


class ShuffleLayer(nn.Module):
    def __init__(self, groups):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: Microsoft/nni
Commit Name: 165756cc19a19db0e75c128ccc97eff3579af1c3
Time: 2020-12-05
Author: Yuge.Zhang@microsoft.com
File Name: examples/nas/proxylessnas/ops.py
Class Name: MobileInvertedResidualBlock
Method Name: forward


Project Name: kuangliu/pytorch-cifar
Commit Name: 0acfbc16e60efe8e4b6666196d4111206db29254
Time: 2017-07-24
Author: kuang.liu@hotmail.com
File Name: models/resnet.py
Class Name: PreActBottleneck
Method Name: forward


Project Name: kuangliu/pytorch-cifar
Commit Name: 0acfbc16e60efe8e4b6666196d4111206db29254
Time: 2017-07-24
Author: kuang.liu@hotmail.com
File Name: models/resnet.py
Class Name: PreActBlock
Method Name: forward