Skip to content

Commit

Permalink
gpu tensor init with coordinate key none coords error, fix #240
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischoy committed Dec 15, 2020
1 parent 0485901 commit d38ad33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MinkowskiEngine/MinkowskiTensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,9 @@ def __init__(
# To device
if device is not None:
features = features.to(device)
coordinates = coordinates.to(device)
if coordinates is not None:
# assertion check for the map key done later
coordinates = coordinates.to(device)

# Coordinate Management
self._D = 0 # coordinate size - 1
Expand Down

0 comments on commit d38ad33

Please sign in to comment.