7ff331f871b563d1dbb36472de28d1a692d8b4af,torchreid/models/mobilenetv2.py,MobileNetV2,forward,#MobileNetV2#Any#,113

Before Change



    def forward(self, x):
        x = self.featuremaps(x)
        x = F.avg_pool2d(x, x.size()[2:]).view(x.size(0), -1)
        x = F.dropout(x, training=self.training)

        if not self.training:
            return x

After Change



    def forward(self, x):
        f = self.featuremaps(x)
        v = self.global_avgpool(f)
        v = v.view(v.size(0), -1)
        
        if self.fc is not None:
            v = self.fc(v)

        if not self.training:
            return v
        
        y = self.classifier(v)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: KaiyangZhou/deep-person-reid
Commit Name: 7ff331f871b563d1dbb36472de28d1a692d8b4af
Time: 2019-03-05
Author: k.zhou@qmul.ac.uk
File Name: torchreid/models/mobilenetv2.py
Class Name: MobileNetV2
Method Name: forward


Project Name: KaiyangZhou/deep-person-reid
Commit Name: 3ddf9ce6998e6a5d2052aba4286b8b899e03149e
Time: 2018-10-27
Author: k.zhou@qmul.ac.uk
File Name: torchreid/models/squeezenet.py
Class Name: SqueezeNet
Method Name: forward


Project Name: KaiyangZhou/deep-person-reid
Commit Name: 710b9ac1a28d418bddc41aeeda320ab4de4d17fe
Time: 2018-10-26
Author: k.zhou@qmul.ac.uk
File Name: torchreid/models/resnet.py
Class Name: ResNet50
Method Name: forward