diff --git a/0_tf_hello_world.ipynb b/0_tf_hello_world.ipynb index 96cf255..78b6272 100644 --- a/0_tf_hello_world.ipynb +++ b/0_tf_hello_world.ipynb @@ -16,18 +16,30 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "metadata": { - "collapsed": false + "collapsed": false, + "scrolled": true }, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "b'Hello World!'\n" + ] + } + ], "source": [ "import tensorflow as tf\n", - "import matplotlib\n", "\n", - "hello = tf.constant('Hello, TensorFlow!')\n", - "sess = tf.Session()\n", - "print(sess.run(hello))" + "# Create TensorFlow object called hello_constant\n", + "hello_constant = tf.constant('Hello World!')\n", + "\n", + "with tf.Session() as sess:\n", + " # Run the tf.constant operation in the session\n", + " output = sess.run(hello_constant)\n", + " print(output) # b'Hello World!' showul appear in output cell just below this line" ] }, { @@ -46,22 +58,23 @@ } ], "metadata": { + "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python 2", + "display_name": "Python [conda env:IntroToTensorFlow]", "language": "python", - "name": "python2" + "name": "conda-env-IntroToTensorFlow-py" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 2 + "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.10" + "pygments_lexer": "ipython3", + "version": "3.5.2" } }, "nbformat": 4, diff --git a/1_linear_regression_model.ipynb b/1_linear_regression_model.ipynb index b3c8de5..1db3be1 100644 --- a/1_linear_regression_model.ipynb +++ b/1_linear_regression_model.ipynb @@ -155,21 +155,21 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 2", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 2 + "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.10" + "pygments_lexer": "ipython3", + "version": "3.5.2" } }, "nbformat": 4, diff --git a/2_mnist.ipynb b/2_mnist.ipynb index f290b7b..4f9ed57 100644 --- a/2_mnist.ipynb +++ b/2_mnist.ipynb @@ -282,21 +282,21 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 2", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 2 + "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.10" + "pygments_lexer": "ipython3", + "version": "3.5.2" } }, "nbformat": 4,