Skip to content

Commit a9cc632

Browse files
authored
[BugFix] Method _is_list_tensor_compatible missing return value (#1277)
1 parent 910c953 commit a9cc632

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensordict/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2944,7 +2944,7 @@ def _is_list_tensor_compatible(t) -> Tuple[bool, tuple | None, type | None]:
29442944
if len(sizes) > 1:
29452945
return False, None, None
29462946
continue
2947-
return False, None
2947+
return False, None, None
29482948
else:
29492949
if len(dtypes):
29502950
dtype = list(dtypes)[0]

0 commit comments

Comments
 (0)