c8fadd2d970f1c62ae8a842464056263f8d1232f,resnet.py,myResnet,forward,#myResnet#Any#,31

Before Change


        x = self.resnet.layer4(x)

        fc = x.mean(2).mean(3).squeeze()
        att = spatialAdaAvgPool(x,14,14).squeeze().permute(1, 2, 0)

        return fc, att

After Change


        x = self.layer4(x)

        x = self.avgpool(x)
        x = x.view(x.size(0), -1)
        x = self.fc(x)

        return x
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: ruotianluo/ImageCaptioning.pytorch
Commit Name: c8fadd2d970f1c62ae8a842464056263f8d1232f
Time: 2017-02-13
Author: rluo@ttic.edu
File Name: resnet.py
Class Name: myResnet
Method Name: forward


Project Name: layumi/Person_reID_baseline_pytorch
Commit Name: 6da69d81e7aa7aac21a8a4abf5b13d2caed3dfa9
Time: 2018-11-25
Author: Zhedong.Zheng@student.uts.edu.au
File Name: model.py
Class Name: ft_net_dense
Method Name: forward


Project Name: layumi/Person_reID_baseline_pytorch
Commit Name: 6da69d81e7aa7aac21a8a4abf5b13d2caed3dfa9
Time: 2018-11-25
Author: Zhedong.Zheng@student.uts.edu.au
File Name: model.py
Class Name: ft_net
Method Name: forward