Skip to content

Commit

Permalink
[Refactor] Remove unused completed_keys property from StepCounter. (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
skandermoalla authored Jan 31, 2024
1 parent 86b8918 commit 06fcac1
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions torchrl/envs/transforms/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -5068,21 +5068,6 @@ def truncated_keys(self):
self._truncated_keys = truncated_keys
return truncated_keys

@property
def completed_keys(self):
done_keys = self.__dict__.get("_done_keys", None)
if done_keys is None:
# make the default done keys
done_keys = []
for reset_key in self.parent._filtered_reset_keys:
if isinstance(reset_key, str):
key = "done"
else:
key = (*reset_key[:-1], "done")
done_keys.append(key)
self.__dict__["_done_keys"] = done_keys
return done_keys

@property
def done_keys(self):
done_keys = self.__dict__.get("_done_keys", None)
Expand Down

0 comments on commit 06fcac1

Please sign in to comment.