Skip to content

Commit

Permalink
non_blocking=True
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Jan 5, 2024
1 parent 24914c8 commit 661886d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensordict/memmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def from_tensor(
if copy_data:
if isinstance(input, DTensor):
input = input.full_tensor()
out.copy_(input)
out.copy_(input, non_blocking=True)
return out

@property
Expand Down

0 comments on commit 661886d

Please sign in to comment.