Skip to content

Commit c5b2ad9

Browse files
author
Vincent Moens
committed
Update
[ghstack-poisoned]
2 parents be6c54b + db4c59b commit c5b2ad9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

torchrl/envs/transforms/rlhf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,6 @@ def _load_from_dataloader(self, reset: torch.Tensor | None = None):
396396
# Some heuristic here:
397397
# if data is a map, assume its keys match the keys in spec
398398
# TODO: one could rename the keys too
399-
out = TensorDict()
400399
if isinstance(data, Mapping):
401400
out = TensorDict(data)
402401
elif len(self.data_keys) > 1 and isinstance(data, (list, tuple)):

0 commit comments

Comments
 (0)