We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be6c379 commit ef09077Copy full SHA for ef09077
torchrl/envs/transforms/rlhf.py
@@ -396,7 +396,6 @@ def _load_from_dataloader(self, reset: torch.Tensor | None = None):
396
# Some heuristic here:
397
# if data is a map, assume its keys match the keys in spec
398
# TODO: one could rename the keys too
399
- out = TensorDict()
400
if isinstance(data, Mapping):
401
out = TensorDict(data)
402
elif len(self.data_keys) > 1 and isinstance(data, (list, tuple)):
0 commit comments