Skip to content

Commit 02c8e44

Browse files
committed
init
1 parent 491ed0f commit 02c8e44

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

test/test_loggers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@
3535
else:
3636
TORCHVISION_VERSION = version.parse("0.0.1")
3737

38-
_has_mp4 = (_has_tv and TORCHVISION_VERSION < version.parse("0.22")) or _has_torchcodec
38+
_has_mp4 = (
39+
_has_tv and version.parse("0.20") <= TORCHVISION_VERSION < version.parse("0.22")
40+
) or _has_torchcodec
3941

4042
if _has_tb:
4143
from tensorboard.backend.event_processing.event_accumulator import EventAccumulator

torchrl/data/replay_buffers/storages.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,6 +1007,7 @@ def _set_tree_map(self, cursor, data, storage): # noqa: 534
10071007
for datum, store in zip(data_flat, storage_flat):
10081008
store[cursor] = datum
10091009

1010+
@compile_disable()
10101011
def _get_new_len(self, data, cursor):
10111012
int_cursor = _is_int(cursor)
10121013
ndim = self.ndim - int_cursor

0 commit comments

Comments
 (0)