ad2100bf40e81c9964b9f4c8a3e5a9dbf5f4efd9,tests/layers/view.py,TestView,forward,#TestView#,16
Before Change
def forward(self, x):
x = self.conv2d(x)
x = x.view([x.size(0), -1, 2, 1, 1, 1, 1, 1]).view(x.size(0), -1).view(x.size(0), -1)
x = torch.nn.Tanh()(x)
return x
After Change
print(type(x.size()[0]))
x = x.view([int(x.size(0)), -1])
x = self.fc(x)
return x
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: nerox8664/pytorch2keras
Commit Name: ad2100bf40e81c9964b9f4c8a3e5a9dbf5f4efd9
Time: 2018-11-24
Author: nerox8664@gmail.com
File Name: tests/layers/view.py
Class Name: TestView
Method Name: forward
Project Name: eriklindernoren/PyTorch-YOLOv3
Commit Name: b7cb7c4a27c46f50bfddb21d4cda76cf9eab1bd6
Time: 2018-06-01
Author: eriklindernoren@gmail.com
File Name: utils/utils.py
Class Name:
Method Name: build_targets
Project Name: batra-mlp-lab/visdial-challenge-starter-pytorch
Commit Name: 0cef773c66b325e84900474688a7b0f4f4663f93
Time: 2018-07-26
Author: karandesai281196@gmail.com
File Name: utils/eval_utils.py
Class Name:
Method Name: get_gt_ranks