From e2edfb274be6ed34c89ce8541c8acecb60c97141 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Geron?= Date: Thu, 4 Mar 2021 09:11:09 +1300 Subject: [PATCH] gradients(dfdx, [x, y]) instead of gradients(dfdx, [3., 4.]), fixes #399 --- extra_autodiff.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extra_autodiff.ipynb b/extra_autodiff.ipynb index 6ef643d..ca8a0c7 100644 --- a/extra_autodiff.ipynb +++ b/extra_autodiff.ipynb @@ -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])]" ] }, {