Yay, works in DP via CPU
This commit is contained in:
parent
ab15419d2f
commit
fc941ebaf7
6 changed files with 18 additions and 9 deletions
|
|
@ -57,7 +57,10 @@ class SquareCropTransformLayer(nn.Module):
|
|||
)
|
||||
|
||||
# Sum into gt_count
|
||||
ret_gt_count = torch.sum(split_t.view(split_t.size(0), -1), dim=1)
|
||||
ret_gt_count = (torch
|
||||
.sum(split_t.view(split_t.size(0), -1), dim=1)
|
||||
.unsqueeze(1)
|
||||
)
|
||||
|
||||
return ret_x, ret_gt_count
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue