c15754e49ef498644c714c8e9091471b78b1eb2f,catalyst/contrib/models/classification/mobilenet.py,MobileNetV2,forward,#MobileNetV2#Any#,139
Before Change
def forward(self, x):
x = self.encoder(x)
x = x.mean(3).mean(2)
x = self.classifier(x)
return x
After Change
def forward(self, x):
x = self.encoder(x)
x = self.conv(x)
x = self.avgpool(x)
x = x.view(x.size(0), -1)
x = self.classifier(x)
return x
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: Scitator/catalyst
Commit Name: c15754e49ef498644c714c8e9091471b78b1eb2f
Time: 2019-03-21
Author: scitator@gmail.com
File Name: catalyst/contrib/models/classification/mobilenet.py
Class Name: MobileNetV2
Method Name: forward
Project Name: ruotianluo/ImageCaptioning.pytorch
Commit Name: c8fadd2d970f1c62ae8a842464056263f8d1232f
Time: 2017-02-13
Author: rluo@ttic.edu
File Name: resnet.py
Class Name: myResnet
Method Name: forward