Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Oct 9, 2023
1 parent bc070b1 commit 39aabdb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tensordict/nn/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def apply(
...

@_unlock_and_set(inplace=True)
def _apply(*args, **kwargs):
def _apply_nest(*args, **kwargs):
...

@_get_post_hook
Expand Down
4 changes: 3 additions & 1 deletion tensordict/tensordict.py
Original file line number Diff line number Diff line change
Expand Up @@ -5231,7 +5231,9 @@ def _empty_like(td: T, *args, **kwargs) -> T:
"cloned, preventing empty_like to be called. "
"Consider calling tensordict.to_tensordict() first."
) from err
return tdclone._fast_apply(lambda x: torch.empty_like(x, *args, **kwargs), inplace=True)
return tdclone._fast_apply(
lambda x: torch.empty_like(x, *args, **kwargs), inplace=True
)


@implements_for_td(torch.clone)
Expand Down

0 comments on commit 39aabdb

Please sign in to comment.