Skip to content

Commit

Permalink
[Versioning] v0.6.2 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Nov 14, 2024
1 parent 0b3c778 commit cdd5cb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tensordict/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -10607,7 +10607,7 @@ def to(tensor):
else:
apply_kwargs["device"] = device if device is not None else self.device
apply_kwargs["batch_size"] = batch_size
apply_kwargs["out"] = self if inplace else None
apply_kwargs["out"] = None
apply_kwargs["checked"] = True
if non_blocking_pin:

Expand Down
2 changes: 1 addition & 1 deletion tensordict/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2779,7 +2779,7 @@ def _rebuild_njt_from_njt(x, values, offsets, lengths):
tgt = mb_unwrap_functional_tensor(new_thing)
src = mb_unwrap_functional_tensor(ragged_source)
tgt.nested_int_memo = src.nested_int_memo
else:
elif new_thing is not None:
_tensor_symint_registry[new_thing] = _tensor_symint_registry[ragged_source]

return NestedTensor(
Expand Down

0 comments on commit cdd5cb3

Please sign in to comment.