Skip to content

Commit

Permalink
added device property for autoencoder (lucidrains#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusLoppe authored Jun 17, 2024
1 parent 019b5f5 commit 9060ef1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions meshgpt_pytorch/meshgpt_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,10 @@ def __init__(
self.commit_loss_weight = commit_loss_weight
self.bin_smooth_blur_sigma = bin_smooth_blur_sigma

@property
def device(self):
return next(self.parameters()).device

@classmethod
def _from_pretrained(
cls,
Expand Down

0 comments on commit 9060ef1

Please sign in to comment.