@@ -42,8 +42,7 @@
"from __future__ import absolute_import, division, print_function\n",
"\n",
"import numpy as np\n",
- "import tensorflow as tf\n",
- "import tensorflow.contrib.eager as tfe"
+ "import tensorflow as tf"
]
},
{
@@ -64,7 +63,8 @@
"source": [
"# Set Eager API\n",
"print(\"Setting Eager mode...\")\n",
- "tfe.enable_eager_execution()"
+ "tf.enable_eager_execution()\n",
+ "tfe = tf.contrib.eager"
@@ -24,8 +24,7 @@
"import matplotlib.pyplot as plt\n",
@@ -37,7 +36,8 @@
"outputs": [],
@@ -35,8 +35,7 @@
@@ -48,7 +47,8 @@
@@ -41,8 +41,7 @@
"from __future__ import print_function\n",
@@ -54,7 +53,8 @@