Skip to content

Commit

Permalink
is_cuda isa bool, not callable (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
anandcu3 committed Jul 12, 2022
1 parent e7da590 commit 7867296
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MinkowskiEngine/utils/quantization.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,9 @@ def sparse_quantize(
)
else:
assert (
not discrete_coordinates.is_cuda()
not discrete_coordinates.is_cuda
), "Quantization with label requires cpu tensors."
assert not labels.is_cuda(), "Quantization with label requires cpu tensors."
assert not labels.is_cuda, "Quantization with label requires cpu tensors."
unique_map, inverse_map, colabels = MEB.quantize_label_th(
discrete_coordinates, labels, ignore_label
)
Expand Down

0 comments on commit 7867296

Please sign in to comment.