3b13f1e6b5f5ac19511cb80f8107d4a1e077beca,model.py,Discriminator,forward,#Discriminator#Any#,84

Before Change



    def forward(self, x):
        batch_size = x.size(0)
        return self.net(x).view(batch_size)


class ResidualBlock(nn.Module):
    def __init__(self, channels):

After Change


    def forward(self, x):
        batch_size = x.size(0)
        x = self.net(x)
        x = x.view(batch_size, -1)
        return F.sigmoid(self.classifier(x))


class ResidualBlock(nn.Module):
    def __init__(self, channels):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: leftthomas/SRGAN
Commit Name: 3b13f1e6b5f5ac19511cb80f8107d4a1e077beca
Time: 2017-12-03
Author: leftthomas@qq.com
File Name: model.py
Class Name: Discriminator
Method Name: forward


Project Name: NVIDIA/sentiment-discovery
Commit Name: 8030eeca74b6634f2a60168516573912aaa9cd65
Time: 2018-11-20
Author: raulp@nvidia.com
File Name: model/modeling.py
Class Name: BertForPreTraining
Method Name: forward


Project Name: KaiyangZhou/deep-person-reid
Commit Name: 4ce9024fcc64d7f98ac5441921c33131306e3186
Time: 2018-10-27
Author: k.zhou@qmul.ac.uk
File Name: torchreid/models/inceptionv4.py
Class Name: InceptionV4Base
Method Name: forward