Describe the bug
|
is_diff = dest[idx].tolist() != value.tolist() |
|
if is_diff: |
To Reproduce
This is a logic error nothing required to reproduce just look at the code.
Reason and Possible fixes
I assume using any() would recreate the intended behavior.
Checklist
Describe the bug
tensordict/tensordict/_td.py
Lines 2581 to 2582 in f7b5e05
To Reproduce
This is a logic error nothing required to reproduce just look at the code.
Reason and Possible fixes
I assume using any() would recreate the intended behavior.
Checklist