Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Performance] Some efficiency improvements #1250

Merged
merged 29 commits into from
Jun 9, 2023
Prev Previous commit
Next Next commit
amend
  • Loading branch information
vmoens committed Jun 9, 2023
commit 06937d44a170889e0f0c700271b4c820eef6f79f
2 changes: 1 addition & 1 deletion torchrl/envs/vec_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ def _step(self, tensordict: TensorDictBase) -> TensorDictBase:
# this is faster than update_ but won't work for lazy stacks
for key in self.env_input_keys:
self.shared_tensordict_parent._set(
tensordict.get(key), inplace=True,
key, tensordict.get(key), inplace=True,
)
if self.event is not None:
self.event.record()
Expand Down