Skip to content

Commit 33a80f3

Browse files
committed
Update on "[torchgen] Add documentation for autogen keyword"
This is a follow up for #81437. This PR explains what operator can use `autogen` and what will be generated. Also talked about generated kernels and where to find them. [ghstack-poisoned]
1 parent 11c4791 commit 33a80f3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

aten/src/ATen/native/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -484,11 +484,11 @@ wanted `const T*`.)
484484
autogen: my_op, my_op.out
485485
```
486486

487-
For an in-place variant of a native function (op name ends with an `_`), we offer the option to
488-
generate a functional variant and an out= variant. If a functional variant is given, we will be
489-
able to generate an out= variant. We don't support `autogen` for view ops, ops that bypass the
490-
dispatcher and composite ops. We also generate kernels for generated ops, which merely copy and
491-
return the result from the base ops. These generated kernels can be found in
487+
For an in-place variant of a native function (op name ends with an `_`), we offer the option to
488+
generate a functional variant and an out= variant. If a functional variant is given, we will be
489+
able to generate an out= variant. We don't support `autogen` for view ops, ops that bypass the
490+
dispatcher and composite ops. We also generate kernels for generated ops, which merely copy and
491+
return the result from the base ops. These generated kernels can be found in
492492
`<gen-out>/aten/src/ATen/CompositeViewCopyKernels.cpp`.
493493

494494

0 commit comments

Comments
 (0)