Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
vmoens committed Dec 15, 2024
1 parent 7cc8f36 commit 918d1fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchrl/data/replay_buffers/replay_buffers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,7 @@ class TensorDictReplayBuffer(ReplayBuffer):
def __init__(self, *, priority_key: str = "td_error", **kwargs) -> None:
writer = kwargs.get("writer", None)
if writer is None:
kwargs["writer"] = TensorDictRoundRobinWriter()
kwargs["writer"] = TensorDictRoundRobinWriter(compilable=kwargs.get("compilable"))

super().__init__(**kwargs)
self.priority_key = priority_key
Expand Down

0 comments on commit 918d1fc

Please sign in to comment.