Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
vmoens committed Oct 11, 2024
1 parent 610e908 commit fddc70f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tensordict/nn/cudagraphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,8 @@ def _call(*args: torch.Tensor, **kwargs: torch.Tensor):
tree_leaves((args, kwargs)), self._flat_tree
):
self._maybe_copy_onto_(arg_src, arg_dest, srcs, dests)
torch._foreach_copy_(dests, srcs)
if dests:
torch._foreach_copy_(dests, srcs)
torch.cuda.synchronize()
self.graph.replay()
if self._return_unchanged == "clone":
Expand Down

0 comments on commit fddc70f

Please sign in to comment.