Skip to content

Commit 88c86f8

Browse files
committed
[BugFix] Fix none ref in during reduction (#1090)
(cherry picked from commit c11024e)
1 parent cdd5cb3 commit 88c86f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensordict/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10687,7 +10687,7 @@ def set_(x):
1068710687
tgt = mb_unwrap_functional_tensor(new_thing)
1068810688
src = mb_unwrap_functional_tensor(ragged_source)
1068910689
tgt.nested_int_memo = src.nested_int_memo
10690-
else:
10690+
elif new_thing is not None:
1069110691
_tensor_symint_registry[new_thing] = _tensor_symint_registry[
1069210692
ragged_source
1069310693
]

0 commit comments

Comments
 (0)