Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Jun 26, 2024
1 parent e06b4db commit 279bd60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion torchrl/envs/transforms/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -4818,6 +4818,7 @@ class VecNorm(Transform):
observations, one should substitute this layer by :meth:`~.to_observation_norm`.
This will provide a static version of `VecNorm` which will not be updated
when the source transform is updated.
To get a frozen copy of the VecNorm layer, see :meth:`~.frozen_copy`.
Args:
in_keys (sequence of NestedKey, optional): keys to be updated.
Expand Down Expand Up @@ -5095,7 +5096,7 @@ def to_observation_norm(self) -> Union[Compose, ObservationNorm]:
def _get_loc_scale(self, loc_only=False, scale_only=False):
loc = {}
scale = {}
for key, key_out in zip(self.in_keys, self.out_keys):
for key in self.in_keys:
_sum = self._td.get(_append_last(key, "_sum"))
_ssq = self._td.get(_append_last(key, "_ssq"))
_count = self._td.get(_append_last(key, "_count"))
Expand Down

0 comments on commit 279bd60

Please sign in to comment.