diff --git a/Notebooks/Chap11/11_1_Shattered_Gradients.ipynb b/Notebooks/Chap11/11_1_Shattered_Gradients.ipynb index 27aae4c..6ef827d 100644 --- a/Notebooks/Chap11/11_1_Shattered_Gradients.ipynb +++ b/Notebooks/Chap11/11_1_Shattered_Gradients.ipynb @@ -4,7 +4,7 @@ "metadata": { "colab": { "provenance": [], - "authorship_tag": "ABX9TyMrF4rB2hTKq7XzLuYsURdL", + "authorship_tag": "ABX9TyMLKg5ZmXqojcVrZD5BGm9g", "include_colab_link": true }, "kernelspec": { @@ -235,7 +235,7 @@ "# Finite difference calculation\n", "dydx_fd = (y2-y1)/delta\n", "\n", - "print(\"Gradient calculation=%f, Finite difference gradient=%f\"%(dydx,dydx_fd))\n" + "print(\"Gradient calculation=%f, Finite difference gradient=%f\"%(dydx.squeeze(),dydx_fd.squeeze()))\n" ], "metadata": { "id": "KJpQPVd36Haq"