Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
vmoens committed Dec 16, 2024
1 parent 7cba108 commit 3cff702
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torchrl/data/tensor_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,12 +407,12 @@ def unbind(self, dim: int = 0):
@low.setter
def low(self, value):
self.device = value.device
self._low = value.cpu()
self._low = value

@high.setter
def high(self, value):
self.device = value.device
self._high = value.cpu()
self._high = value

def __post_init__(self):
self.low = self.low.clone()
Expand Down

0 comments on commit 3cff702

Please sign in to comment.