Skip to content

Commit 78ff247

Browse files
ningzhousoumith
authored andcommitted
correct a tiny error (pytorch#92)
1 parent e679f9f commit 78ff247

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beginner_source/blitz/autograd_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
# You should have got a matrix of ``4.5``. Let’s call the ``out``
9090
# *Variable* “:math:`o`”.
9191
# We have that :math:`o = \frac{1}{4}\sum_i z_i`,
92-
# :math:`z_i = 3(x_i+2)^2` and :math:`z_i\bigr\rvert_{x_i=1} = 27`.
92+
# :math:`z_i = 3(x_i+2)^2` and :math:`z_i\bigr\rvert_{x_i=1} = 18`.
9393
# Therefore,
9494
# :math:`\frac{\partial o}{\partial x_i} = \frac{3}{2}(x_i+2)`, hence
9595
# :math:`\frac{\partial o}{\partial x_i}\bigr\rvert_{x_i=1} = \frac{9}{2} = 4.5`.

0 commit comments

Comments
 (0)