From a7b52ab9b58413f87114229a25cf87caa8774faa Mon Sep 17 00:00:00 2001 From: leopard8k <50277101+leopard8k@users.noreply.github.com> Date: Tue, 18 Aug 2020 17:38:22 -0400 Subject: [PATCH] Need to specify TF1.x This will not run on TF2 due to the fact that tf.train.AdamOptimizer is not available in TF2. Hence, I am proposing this minor change to ensure TF1.x is selected when the model is built. --- tutorial_deep_learning_basics/deep_learning_basics.ipynb | 1 + 1 file changed, 1 insertion(+) diff --git a/tutorial_deep_learning_basics/deep_learning_basics.ipynb b/tutorial_deep_learning_basics/deep_learning_basics.ipynb index 2b4f48f..218c5b1 100644 --- a/tutorial_deep_learning_basics/deep_learning_basics.ipynb +++ b/tutorial_deep_learning_basics/deep_learning_basics.ipynb @@ -93,6 +93,7 @@ ], "source": [ "# TensorFlow and tf.keras\n", + "%tensorflow_version 1.x\n", "import tensorflow as tf\n", "from tensorflow import keras\n", "from tensorflow.keras.layers import Conv2D, MaxPooling2D, Dropout, Flatten, Dense\n",