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

[Feature] Video recording in SOTA examples #2070

Merged
merged 13 commits into from
Apr 23, 2024
Prev Previous commit
Next Next commit
amend
  • Loading branch information
vmoens committed Apr 23, 2024
commit 3a4ae8742a1b92d2274bf6b80519f983933fdf57
3 changes: 2 additions & 1 deletion torchrl/envs/transforms/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -3511,9 +3511,10 @@ def func(name, item):
item = self._apply_transform(item)
tensordict.set(name, item)

return tensordict._fast_apply(
tensordict._fast_apply(
func, named=True, nested_keys=True, filter_empty=True
)
return tensordict
else:
# we made sure that if in_keys is not None, out_keys is not None either
for in_key, out_key in zip(in_keys, out_keys):
Expand Down
Loading