7fffa98b9166a03b4a53fb40202d97b09e8e9036,models.py,YOLOLayer,forward,#YOLOLayer#,94
Before Change
self.seen)
nProposals = int((conf > 0.25).sum().data[0])
tx = Variable(tx.type(FloatTensor), requires_grad=False)
ty = Variable(ty.type(FloatTensor), requires_grad=False)
After Change
FloatTensor = torch.cuda.FloatTensor if x.is_cuda else torch.FloatTensor
LongTensor = torch.cuda.LongTensor if x.is_cuda else torch.LongTensor
if x.is_cuda:
self.mse_loss = self.mse_loss.cuda()
self.ce_loss = self.ce_loss.cuda()
prediction = x.view(bs, self.bbox_attrs * self.num_anchors, g_dim * g_dim)
prediction = prediction.transpose(1, 2).contiguous()
prediction = prediction.view(bs, g_dim * g_dim * self.num_anchors, self.bbox_attrs)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: eriklindernoren/PyTorch-YOLOv3
Commit Name: 7fffa98b9166a03b4a53fb40202d97b09e8e9036
Time: 2018-05-29
Author: eriklindernoren@gmail.com
File Name: models.py
Class Name: YOLOLayer
Method Name: forward
Project Name: ClementPinard/FlowNetPytorch
Commit Name: c6a079c70368b41873f3288b05b74d38f74b6680
Time: 2018-03-30
Author: clement.pinard@parrot.com
File Name: run_inference.py
Class Name:
Method Name: main
Project Name: NVIDIA/waveglow
Commit Name: 60674be9b02b46b9c089d49ef055501a2ad1b0d7
Time: 2019-03-15
Author: rafaelvalle@nvidia.com
File Name: inference.py
Class Name:
Method Name: main