Skip to content
This repository was archived by the owner on Oct 13, 2021. It is now read-only.

Commit 013190d

Browse files
committed
1 parent 57af33a commit 013190d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

second/pytorch/models/voxelnet.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def __init__(self,
326326

327327
def forward(self, voxel_features, coors, batch_size):
328328
output_shape = [batch_size] + self.voxel_output_shape[1:]
329-
ret = scatter_nd(coors, voxel_features, output_shape)
329+
ret = scatter_nd(coors.long(), voxel_features, output_shape)
330330
# print('scatter_nd fw:', time.time() - t)
331331
ret = ret.permute(0, 4, 1, 2, 3)
332332
ret = self.middle_conv(ret)

0 commit comments

Comments
 (0)