We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1a9d72 commit 0a17d6dCopy full SHA for 0a17d6d
torchrl/data/replay_buffers/writers.py
@@ -577,6 +577,14 @@ def extend(self, data: TensorDictBase) -> None:
577
self._mark_update_entities(index)
578
return index
579
580
+ # TODO: Workaround for PyTorch nightly regression where compiler can't handle
581
+ # method calls on objects returned from _attached_entities_iter()
582
+ @torch.compiler.disable()
583
+ def _mark_update_entities(self, index: torch.Tensor) -> None:
584
+ """Mark entities as updated with the given index."""
585
+ for ent in self._storage._attached_entities_iter():
586
+ ent.mark_update(index)
587
+
588
def _empty(self, empty_write_count: bool = True) -> None:
589
self._cursor = 0
590
self._current_top_values = []
0 commit comments