94fedbfc3f3bcb1aa3738f1997aa34834f8475cd,kraken/lib/vgsl.py,TorchVGSLModel,build_maxpool,#TorchVGSLModel#Any#Any#,323

Before Change


                  input[1],
                  int(np.floor((input[2]-(kernel_size[0]-1)-1)/stride[0]+1) if input[2] != 0 else 0),
                  int(np.floor((input[3]-(kernel_size[1]-1)-1)/stride[1]+1) if input[3] != 0 else 0))
        return output, [torch.nn.MaxPool2d(kernel_size, stride)]

    def build_output(self, input, block):
        
        Builds an output layer.

After Change


                  input[1],
                  int(np.floor((input[2]-(kernel_size[0]-1)-1)/stride[0]+1) if input[2] != 0 else 0),
                  int(np.floor((input[3]-(kernel_size[1]-1)-1)/stride[1]+1) if input[3] != 0 else 0))
        return output, self.get_layer_name(m.group("type"), m.group("name")), torch.nn.MaxPool2d(kernel_size, stride)

    def build_output(self, input, block):
        
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: mittagessen/kraken
Commit Name: 94fedbfc3f3bcb1aa3738f1997aa34834f8475cd
Time: 2018-01-24
Author: mittagessen@l.unchti.me
File Name: kraken/lib/vgsl.py
Class Name: TorchVGSLModel
Method Name: build_maxpool


Project Name: mittagessen/kraken
Commit Name: 94fedbfc3f3bcb1aa3738f1997aa34834f8475cd
Time: 2018-01-24
Author: mittagessen@l.unchti.me
File Name: kraken/lib/vgsl.py
Class Name: TorchVGSLModel
Method Name: build_dropout


Project Name: mittagessen/kraken
Commit Name: 94fedbfc3f3bcb1aa3738f1997aa34834f8475cd
Time: 2018-01-24
Author: mittagessen@l.unchti.me
File Name: kraken/lib/vgsl.py
Class Name: TorchVGSLModel
Method Name: build_conv


Project Name: mittagessen/kraken
Commit Name: 94fedbfc3f3bcb1aa3738f1997aa34834f8475cd
Time: 2018-01-24
Author: mittagessen@l.unchti.me
File Name: kraken/lib/vgsl.py
Class Name: TorchVGSLModel
Method Name: build_maxpool