Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
vmoens committed Sep 25, 2024
1 parent a00ea10 commit 94d5626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchrl/data/replay_buffers/storages.py
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,7 @@ def max_size_along_dim0(data_shape):
out = data.clone().to(self.device)
out = out.expand(max_size_along_dim0(data.shape))
out = out.memmap_like(prefix=self.scratch_dir, existsok=self.existsok)
if torchrl_logger.getEffectiveLevel() == logging.DEBUG:
if torchrl_logger.isEnabledFor(logging.DEBUG):
for key, tensor in sorted(
out.items(include_nested=True, leaves_only=True), key=str
):
Expand Down

0 comments on commit 94d5626

Please sign in to comment.