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

[BugFix,Feature] Allow non-tensor data in envs #1944

Merged
merged 11 commits into from
Jun 19, 2024
Prev Previous commit
Next Next commit
amend
  • Loading branch information
vmoens committed Jun 11, 2024
commit 09bbd80eb18f9b49d754cff2f2f936f4d9cfb958
5 changes: 0 additions & 5 deletions torchrl/envs/batched_envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -758,11 +758,6 @@ def _create_td(self) -> None:
*(unravel_key(("next", key)) for key in self._env_output_keys),
strict=False,
)
for key, item in list(shared_tensordict_parent.items(True)):
if isinstance(item, NonTensorData):
shared_tensordict_parent.set(
key, NonTensorStack(*item.unbind(0), stack_dim=0)
)
self.shared_tensordict_parent = shared_tensordict_parent
else:
# Multi-task: we share tensordict that *may* have different keys
Expand Down
Loading