Skip to content

Commit

Permalink
Fix minor typo in cell
Browse files Browse the repository at this point in the history
One of the arguments to `hvp` wasn't being used, which made the example slightly confusing.
  • Loading branch information
langosco authored Apr 13, 2020
1 parent 909fee6 commit 527c69a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/notebooks/autodiff_cookbook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@
"outputs": [],
"source": [
"def hvp(f, x, v):\n",
" return grad(lambda x: np.vdot(grad(f)(x), v))"
" return grad(lambda x: np.vdot(grad(f)(x), v))(x)"
]
},
{
Expand Down

0 comments on commit 527c69a

Please sign in to comment.