Skip to content

Commit ef09077

Browse files
committed
Update
[ghstack-poisoned]
1 parent be6c379 commit ef09077

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

torchrl/envs/transforms/rlhf.py

-1
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)