We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d595ae commit 05a1c5bCopy full SHA for 05a1c5b
nerfacc/grid.py
@@ -169,9 +169,9 @@ def __init__(
169
grid_coords = _meshgrid3d(resolution).reshape(
170
self.num_cells, self.NUM_DIM
171
)
172
- self.register_buffer("grid_coords", grid_coords)
+ self.register_buffer("grid_coords", grid_coords, persistent=False)
173
grid_indices = torch.arange(self.num_cells)
174
- self.register_buffer("grid_indices", grid_indices)
+ self.register_buffer("grid_indices", grid_indices, persistent=False)
175
176
@torch.no_grad()
177
def _get_all_cells(self) -> torch.Tensor:
0 commit comments