Skip to content

Commit

Permalink
Fix the warning in new PyTorch due to torch.bool
Browse files Browse the repository at this point in the history
  • Loading branch information
zhou13 committed Oct 17, 2019
1 parent 2c9d414 commit fcfb25b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lcnn/models/line_vectorizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def sample_lines(self, meta, jmap, joff, do_evaluation):
if do_evaluation:
c = (u < v).flatten()
else:
c = torch.zeros_like(label)
c = torch.zeros_like(label, dtype=torch.bool)

# sample positive lines
cdx = label.nonzero().flatten()
Expand Down

0 comments on commit fcfb25b

Please sign in to comment.