710b9ac1a28d418bddc41aeeda320ab4de4d17fe,torchreid/models/resnet.py,ResNet101,forward,#ResNet101#Any#,47
Before Change
y = self.classifier(f)
if self.loss == {"xent"}:
return y
elif self.loss == {"xent", "htri"}:
return y, f
else:
raise KeyError("Unsupported loss: {}".format(self.loss))
class ResNet50M(nn.Module):
ResNet50 + mid-level features.
After Change
out += residual
out = self.relu(out)
return out
class Bottleneck(nn.Module):
expansion = 4
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: KaiyangZhou/deep-person-reid
Commit Name: 710b9ac1a28d418bddc41aeeda320ab4de4d17fe
Time: 2018-10-26
Author: k.zhou@qmul.ac.uk
File Name: torchreid/models/resnet.py
Class Name: ResNet101
Method Name: forward
Project Name: pantsbuild/pants
Commit Name: 9b883c84ead9839bf1fd163ce92f4f32e9dd32d5
Time: 2020-03-19
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/engine/target.py
Class Name: Target
Method Name: get
Project Name: explosion/thinc
Commit Name: c05b727cd72d4c9d88d62944e3f71dfd8ebf9353
Time: 2017-01-12
Author: honnibal+gh@gmail.com
File Name: thinc/neural/mem.py
Class Name: Memory
Method Name: get