Skip to content

Commit

Permalink
Use tensor.bool instead of tensor.byte
Browse files Browse the repository at this point in the history
  • Loading branch information
xmyqsh committed Jan 6, 2020
1 parent fa13f93 commit b567905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion det3d/models/bbox_heads/mg_head.py
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ def get_task_detections(
dir_labels = selected_dir_labels
opp_labels = (
(box_preds[..., -1] - self.direction_offset) > 0
) ^ dir_labels.byte()
) ^ dir_labels.bool()
box_preds[..., -1] += torch.where(
opp_labels,
torch.tensor(np.pi).type_as(box_preds),
Expand Down

0 comments on commit b567905

Please sign in to comment.