616bb3cff2d8d1b58dbea95a39b0128052952b23,gluon/gluoncv2/models/irevnet.py,IRevInjectivePad,hybrid_forward,#IRevInjectivePad#Any#Any#,131
Before Change
self.pad = nn.ZeroPad2d(padding=(0, 0, 0, padding))
def hybrid_forward(self, F, x):
x = x.transpose(axes=(0, 2, 1, 3))
x = self.pad(x)
return x.transpose(axes=(0, 2, 1, 3))
def inverse(self, x):
After Change
self.padding = padding
def hybrid_forward(self, F, x):
return F.pad(x, mode="constant", pad_width=(0, 0, 0, self.padding, 0, 0, 0, 0), constant_value=0)
def inverse(self, x):
return x[:, :x.shape[1] - self.padding, :, :]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: osmr/imgclsmob
Commit Name: 616bb3cff2d8d1b58dbea95a39b0128052952b23
Time: 2019-03-07
Author: osemery@gmail.com
File Name: gluon/gluoncv2/models/irevnet.py
Class Name: IRevInjectivePad
Method Name: hybrid_forward
Project Name: explosion/thinc
Commit Name: d6d7cb7db51776b026514a1a2caa4073b9e998ad
Time: 2020-01-19
Author: honnibal+gh@gmail.com
File Name: thinc/backends/ops.py
Class Name: Ops
Method Name: list2padded
Project Name: explosion/thinc
Commit Name: d6d7cb7db51776b026514a1a2caa4073b9e998ad
Time: 2020-01-19
Author: honnibal+gh@gmail.com
File Name: thinc/backends/jax_ops.py
Class Name: JaxOps
Method Name: list2padded