47c6377324b4906ed5e133011350c22d1f809466,scripts/gan/srgan/train_srgan.py,SubpixelBlock,hybrid_forward,#SubpixelBlock#Any#Any#,37
Before Change
def hybrid_forward(self, F, x,*args, **kwargs):
x = self.conv(x)
x = x.transpose([0, 2, 3, 1])
batchsize,height,width,depth = x.shape
x = x.reshape((batchsize, height , width, 2, 2, int(depth / 4)))
x = x.transpose([0, 1,3,2,4,5])
x = x.reshape((batchsize, height * 2, width * 2, int(depth / 4)))
x = x.transpose([0, 3, 1, 2])
After Change
x = x.reshape((0, -4, -1, 4, 0, 0))
x = x.reshape((0, 0, -4, 2, 2, 0, 0))
x = x.transpose((0, 1, 2, 4, 3, 5))
x = x.reshape((0, 0, -3, -3))
x = self.relu(x)
return x

In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: dmlc/gluon-cv
Commit Name: 47c6377324b4906ed5e133011350c22d1f809466
Time: 2020-05-01
Author: cheungchih@gmail.com
File Name: scripts/gan/srgan/train_srgan.py
Class Name: SubpixelBlock
Method Name: hybrid_forward
Project Name: GPflow/GPflow
Commit Name: a75f24ad02e8f5fb80589983267963fd907a4cc0
Time: 2018-01-08
Author: james.hensman@gmail.com
File Name: gpflow/likelihoods.py
Class Name: SwitchedLikelihood
Method Name: _partition_and_stitch
Project Name: catalyst-team/catalyst
Commit Name: 1ef3ad90a3423ed15ca41e0ea4e81012ebe84a9f
Time: 2020-08-11
Author: scitator@gmail.com
File Name: catalyst/data/scripts/project_embeddings.py
Class Name:
Method Name: main
Project Name: OpenNMT/OpenNMT-py
Commit Name: 08184fbbb9248ebe53350f71f6f43be859fd838e
Time: 2017-06-30
Author: sasha.rush@gmail.com
File Name: onmt/Models.py
Class Name: Decoder
Method Name: forward