gradients(dfdx, [x, y]) instead of gradients(dfdx, [3., 4.]), fixes #399

main
Aurélien Geron 2021-03-04 09:11:09 +13:00
parent d6c2ba1b8f
commit e2edfb274b
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@
"outputs": [],
"source": [
"def d2f(x, y):\n",
" return [gradients(dfdx, [3., 4.]), gradients(dfdy, [3., 4.])]"
" return [gradients(dfdx, [x, y]), gradients(dfdy, [x, y])]"
]
},
{