Skip to content

Commit

Permalink
Merge pull request #30 from DerThomy/main
Browse files Browse the repository at this point in the history
Empty torch cache after optimizer tensor replacement
  • Loading branch information
shakibakh authored Jan 2, 2025
2 parents 491e17a + 389bbe4 commit 7b4fc9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scene/gaussian_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,8 @@ def replace_tensors_to_optimizer(self, inds=None):
self._scaling = optimizable_tensors["scaling"]
self._rotation = optimizable_tensors["rotation"]

torch.cuda.empty_cache()

return optimizable_tensors


Expand Down

0 comments on commit 7b4fc9f

Please sign in to comment.