f6ceb97a6199dd781fb88d04de556df5dbd79b8e,kymatio/scattering2d/backend/backend_skcuda.py,Pad,build,#Pad#,68
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[2] == self.input_size[1]:
pad_size_tmp[2] -= 1
pad_size_tmp[3] -= 1
self.padding_module = ReflectionPad2d(pad_size_tmp)
def __call__(self, x):
if not self.pre_pad:
x = self.padding_module(x)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
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
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