Skip to content

Commit

Permalink
[Minor] fix spatial_range in building kernel map (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
ys-2020 authored May 31, 2024
1 parent 462dea4 commit f9ea9c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions torchsparse/nn/functional/conv/kmap/build_kmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def build_kernel_map(
spatial_range[i + 1] + 2 * padding[i] - (kernel_size[i] - 1) - 1
) // stride[i] + 1
new_spatial_range = spatial_range[:1] + tuple(new_spatial_range)
kmap["spatial_range"] = new_spatial_range
else:
new_spatial_range = None
subm = not (any(s > 1 for s in stride))
Expand Down

0 comments on commit f9ea9c0

Please sign in to comment.