Skip to content

Commit 6c068f2

Browse files
crcrparriccardofelluga
authored andcommitted
make comment of _inplace_to_out_of_place verbose (#1556)
1 parent 18da0ff commit 6c068f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

thunder/torch/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@
9191
# torch operation definitions
9292
#
9393

94-
# in-place sym -> out-of-place (= functional) sym with index of `inplace` argument
94+
# in-place sym -> out-of-place (= functional) sym with index of `inplace: bool` argument
95+
# If an in-place op doesn't have `inplace: bool` argument, set -1.
9596
_inplace_to_out_of_place: dict[Callable, tuple[Callable, int]] = {}
9697

9798

0 commit comments

Comments
 (0)