Skip to content

Commit

Permalink
[Minor] Remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
cbhua committed Sep 4, 2024
1 parent 13a764d commit 9b22619
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions torchrl/data/tensor_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,16 +397,6 @@ def high(self, value):
self.device = value.device
self._high = value.cpu()

@low.setter
def low(self, value):
self.device = value.device
self._low = value.cpu()

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

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

0 comments on commit 9b22619

Please sign in to comment.