7a1084089da1b116d55dae0f8df871328e7d7a16,test/test_jit_tracing.py,LocalizationNetwork,__init__,#LocalizationNetwork#Any#Any#Any#,44

Before Change


        super(LocalizationNetwork, self).__init__()

        self.cnn = models.__dict__["alexnet"](pretrained=pretrained)
        self.cnn = nn.Sequential(*list(self.cnn.children())[0])
        self.cnn = nn.Sequential(*list(self.cnn.children())[:-1])

        self.affine = affine

After Change


        self.cnn = nn.Sequential(
            nn.Conv2d(3, 16, kernel_size=3, stride=1, padding=1),
            nn.ReLU(inplace=True),
            nn.Conv2d(16, 16, kernel_size=3, stride=1, padding=1),
            nn.ReLU(inplace=True),
            nn.MaxPool2d(kernel_size=2, stride=2),
            nn.Conv2d(16, 32, kernel_size=3, stride=1, padding=1),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: arraiy/torchgeometry
Commit Name: 7a1084089da1b116d55dae0f8df871328e7d7a16
Time: 2019-01-11
Author: kaplanonu@gmail.com
File Name: test/test_jit_tracing.py
Class Name: LocalizationNetwork
Method Name: __init__


Project Name: rtqichen/torchdiffeq
Commit Name: 6aaa82f70e8163d1eb0d85df4e5dbea4a57fd350
Time: 2018-11-15
Author: rtqichen@gmail.com
File Name: examples/odenet_mnist.py
Class Name:
Method Name:


Project Name: zhanghang1989/PyTorch-Encoding
Commit Name: 8f8fbb9f6543a4ccaad53923d33647e7138d95ea
Time: 2017-10-15
Author: zhang.hang@rutgers.edu
File Name: encoding/parallel.py
Class Name: ModelDataParallel
Method Name: __init__