Commit b481cfbd authored by Jeremy Reizenstein's avatar Jeremy Reizenstein Committed by Facebook GitHub Bot
Browse files

Correct shape for default grid_sizes

Summary: Small fix for omitting this argument.

Reviewed By: nikhilaravi

Differential Revision: D29548610

fbshipit-source-id: f25032fab3faa2f09006f5fcf8628138555f2f20
parent 46cf1970
...@@ -181,8 +181,11 @@ def add_points_features_to_volume_densities_features( ...@@ -181,8 +181,11 @@ def add_points_features_to_volume_densities_features(
# init the volumetric grid sizes if uninitialized # init the volumetric grid sizes if uninitialized
if grid_sizes is None: if grid_sizes is None:
grid_sizes = torch.LongTensor(list(volume_densities.shape[2:])).to( # grid sizes shape (minibatch, 3)
volume_densities grid_sizes = (
torch.LongTensor(list(volume_densities.shape[2:]))
.to(volume_densities)
.expand(volume_densities.shape[0], 3)
) )
# flatten densities and features # flatten densities and features
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment