Skip to content

Commit b478ae9

Browse files
committed
typofix
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
1 parent 8faf499 commit b478ae9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

advanced_source/dispatcher.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ way under the hood. Here's what the dispatching function looks like:
111111

112112
.. literalinclude:: ../advanced_source/dispatcher/op.cpp
113113
:language: cpp
114-
:start-after: myadd
115-
:end-before: myadd
114+
:start-after: BEGIN myadd
115+
:end-before: END myadd
116116

117117
Let's break it down:
118118

@@ -140,8 +140,8 @@ With the dispatch function in hand, we can now write the autograd kernel:
140140

141141
.. literalinclude:: ../advanced_source/dispatcher/op.cpp
142142
:language: cpp
143-
:start-after: myadd_autograd
144-
:end-before: myadd_autograd
143+
:start-after: BEGIN myadd_autograd
144+
:end-before: END myadd_autograd
145145

146146
The autograd function is written as normal using ``torch::autograd::Function``,
147147
except that instead of directly writing the implementation in ``forward()``,

0 commit comments

Comments
 (0)