Skip to content

Commit

Permalink
[BugFix] Fix incorrect deprecation warning (#1655)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemykhaylov authored Oct 25, 2023
1 parent 1bb192e commit 10bb591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchrl/data/tensor_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def minimum(self):
@property
def maximum(self):
warnings.warn(
f"{type(self)}.maximum is going to be deprecated in favour of {type(self)}.low",
f"{type(self)}.maximum is going to be deprecated in favour of {type(self)}.high",
category=DeprecationWarning,
)
return self._high.to(self.device)
Expand Down

0 comments on commit 10bb591

Please sign in to comment.