f6ceb97a6199dd781fb88d04de556df5dbd79b8e,kymatio/scattering2d/backend/backend_torch.py,Pad,build,#Pad#,36
Before Change
self.build()
def build(self):
self.padding_module = ReflectionPad2d(self.pad_size)
def __call__(self, x):
if not self.pre_pad:
x = self.padding_module(x)
After Change
if pad_size_tmp[0] == self.input_size[0]:
pad_size_tmp[0] -= 1
pad_size_tmp[1] -= 1
if pad_size_tmp[2] == self.input_size[1]:
pad_size_tmp[2] -= 1
pad_size_tmp[3] -= 1
self.padding_module = ReflectionPad2d(pad_size_tmp)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 2
Instances Project Name: kymatio/kymatio
Commit Name: f6ceb97a6199dd781fb88d04de556df5dbd79b8e
Time: 2020-01-23
Author: edouard.oyallon@ens.fr
File Name: kymatio/scattering2d/backend/backend_torch.py
Class Name: Pad
Method Name: build
Project Name: kymatio/kymatio
Commit Name: f6ceb97a6199dd781fb88d04de556df5dbd79b8e
Time: 2020-01-23
Author: edouard.oyallon@ens.fr
File Name: kymatio/scattering2d/backend/backend_skcuda.py
Class Name: Pad
Method Name: build
Project Name: kymatio/kymatio
Commit Name: 199ef3ae711ff9b70def17889aece544f004c428
Time: 2020-01-23
Author: kegnarok.rm@gmail.com
File Name: kymatio/scattering2d/backend/backend_skcuda.py
Class Name: Pad
Method Name: build
Project Name: kymatio/kymatio
Commit Name: 199ef3ae711ff9b70def17889aece544f004c428
Time: 2020-01-23
Author: kegnarok.rm@gmail.com
File Name: kymatio/scattering2d/backend/backend_torch.py
Class Name: Pad
Method Name: build