Skip to content

Commit 666e12a

Browse files
Correct mistake in autograd_tutorial.py (#1367)
Co-authored-by: holly1238 <77758406+holly1238@users.noreply.github.com>
1 parent 49fe71d commit 666e12a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

beginner_source/blitz/autograd_tutorial.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,12 @@
170170
# vector-Jacobian product. That is, given any vector :math:`\vec{v}`, compute the product
171171
# :math:`J^{T}\cdot \vec{v}`
172172
#
173-
# If :math:`v` happens to be the gradient of a scalar function
173+
# If :math:`\vec{v}` happens to be the gradient of a scalar function :math:`l=g\left(\vec{y}\right)`:
174174
#
175175
# .. math::
176176
#
177177
#
178-
# l
179-
# =
180-
# g\left(\vec{y}\right)
178+
# \vec{v}
181179
# =
182180
# \left(\begin{array}{ccc}\frac{\partial l}{\partial y_{1}} & \cdots & \frac{\partial l}{\partial y_{m}}\end{array}\right)^{T}
183181
#

0 commit comments

Comments
 (0)