Skip to content

Commit c44235e

Browse files
committed
Fixed rst format
1 parent dda2407 commit c44235e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

unstable_source/inductor_cpp_wrapper_tutorial.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ By turning on the C++ wrapper, the generated code for the ``call`` function beco
7878
``inductor_entry_impl``:
7979

8080
.. code:: python
81+
8182
cpp_wrapper_src = (
8283
r'''
8384
#include <torch/csrc/inductor/cpp_wrapper/cpu.h>
@@ -147,6 +148,7 @@ Based on the same example code, the generated code for GPU will look like this:
147148
With the C++ wrapper turned on, the below equivalent C++ code will be generated:
148149

149150
.. code:: python
151+
150152
inductor_entry = CppWrapperCodeCache.load_pybinding(
151153
argtypes=["std::vector<AtenTensorHandle>"],
152154
main_code=cpp_wrapper_src,
@@ -181,7 +183,7 @@ motivation for this feature, detailed the experimental API used to enable it,
181183
and compared the generated outputs of the default Python wrapper and the new
182184
C++ wrapper on both CPU and GPU backends to illustrate their distinctions.
183185

184-
# For more information on torch.compile, see
185-
#
186-
# .. _torch.compile tutorial: https://docs.pytorch.org/tutorials/intermediate/torch_compile_tutorial.html
187-
# .. TORCH_LOGS tutorial: https://docs.pytorch.org/tutorials/recipes/torch_logs.html
186+
.. For more information on torch.compile, see
187+
..
188+
.. .. _torch.compile tutorial: https://docs.pytorch.org/tutorials/intermediate/torch_compile_tutorial.html
189+
.. .. TORCH_LOGS tutorial: https://docs.pytorch.org/tutorials/recipes/torch_logs.html

0 commit comments

Comments
 (0)