Skip to content

Commit

Permalink
fix nested out keys
Browse files Browse the repository at this point in the history
  • Loading branch information
albertbou92 committed Jan 4, 2024
1 parent 2716806 commit a5cdeb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchrl/envs/transforms/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -6681,7 +6681,7 @@ def forward(self, tensordict: TensorDictBase) -> TensorDictBase:

# Update out TensorDict with the burnt-in data.
for out_key in self.out_keys:
if out_key not in td_out.keys():
if out_key not in td_out.keys(include_nested=True):
td_out.set(
out_key,
torch.zeros(
Expand Down

0 comments on commit a5cdeb4

Please sign in to comment.