diff --git a/.gitignore b/.gitignore index 89c7162..3ac0a22 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ logs/* tf_logs/* images/**/*.png my_* +datasets/words diff --git a/09_up_and_running_with_tensorflow.ipynb b/09_up_and_running_with_tensorflow.ipynb index 138ad7d..64e86fc 100644 --- a/09_up_and_running_with_tensorflow.ipynb +++ b/09_up_and_running_with_tensorflow.ipynb @@ -1205,7 +1205,7 @@ " return tf.maximum(linear, threshold, name=\"max\")\n", "\n", "X = tf.placeholder(tf.float32, shape=(None, n_features), name=\"X\")\n", - "with tf.variable_scope(\"\") as scope:\n", + "with tf.variable_scope(\"\", default_name=\"\") as scope:\n", " first_relu = relu(X) # create the shared variable\n", " scope.reuse_variables() # then reuse it\n", " relus = [first_relu] + [relu(X) for i in range(4)]\n", @@ -1231,7 +1231,7 @@ "with tf.variable_scope(\"param\", reuse=True):\n", " y = tf.get_variable(\"x\")\n", "\n", - "with tf.variable_scope(\"\", reuse=True):\n", + "with tf.variable_scope(\"\", default_name=\"\", reuse=True):\n", " z = tf.get_variable(\"param/x\", shape=(), initializer=tf.constant_initializer(0.))\n", "\n", "print(x is y)\n", @@ -1688,7 +1688,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.1" + "version": "3.5.2" }, "nav_menu": { "height": "603px", diff --git a/11_deep_learning.ipynb b/11_deep_learning.ipynb index 761a60f..5a6a44b 100644 --- a/11_deep_learning.ipynb +++ b/11_deep_learning.ipynb @@ -511,7 +511,7 @@ }, "outputs": [], "source": [ - "with tf.variable_scope(\"\", reuse=True):\n", + "with tf.variable_scope(\"\", default_name=\"\", reuse=True): # root scope\n", " weights1 = tf.get_variable(\"hidden1/weights\")\n", " weights2 = tf.get_variable(\"hidden2/weights\")\n", " " @@ -820,7 +820,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 36, "metadata": { "collapsed": false }, @@ -832,7 +832,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 37, "metadata": { "collapsed": false }, @@ -910,7 +910,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.1" + "version": "3.5.2" }, "nav_menu": { "height": "360px", diff --git a/13_convolutional_neural_networks.ipynb b/13_convolutional_neural_networks.ipynb index f45559b..6bf1b29 100644 --- a/13_convolutional_neural_networks.ipynb +++ b/13_convolutional_neural_networks.ipynb @@ -592,7 +592,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.1" + "version": "3.5.2" }, "nav_menu": {}, "toc": { diff --git a/requirements.txt b/requirements.txt index d2a45c6..efd6eb5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -31,32 +31,32 @@ https://github.com/ipython-contrib/jupyter_contrib_nbextensions/tarball/master # See https://www.tensorflow.org/versions/master/get_started/os_setup.html # Ubuntu/Linux 64-bit, CPU only, Python 2.7 -#https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.10.0-cp27-none-linux_x86_64.whl +#https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0-cp27-none-linux_x86_64.whl # Ubuntu/Linux 64-bit, GPU enabled, Python 2.7 -#https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.10.0-cp27-none-linux_x86_64.whl +#https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.11.0-cp27-none-linux_x86_64.whl # Mac OS X, CPU only, Python 2.7: -#https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.10.0-py2-none-any.whl +#https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.11.0-py2-none-any.whl # Mac OS X, GPU enabled, Python 2.7: -#https://storage.googleapis.com/tensorflow/mac/gpu/tensorflow-0.10.0-py2-none-any.whl +#https://storage.googleapis.com/tensorflow/mac/gpu/tensorflow-0.11.0-py2-none-any.whl # Ubuntu/Linux 64-bit, CPU only, Python 3.4 -#https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.10.0-cp34-cp34m-linux_x86_64.whl +#https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0-cp34-cp34m-linux_x86_64.whl # Ubuntu/Linux 64-bit, GPU enabled, Python 3.4 -#https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.10.0-cp34-cp34m-linux_x86_64.whl +#https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.11.0-cp34-cp34m-linux_x86_64.whl # Ubuntu/Linux 64-bit, CPU only, Python 3.5 -https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.10.0-cp35-cp35m-linux_x86_64.whl +https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0-cp35-cp35m-linux_x86_64.whl # Ubuntu/Linux 64-bit, GPU enabled, Python 3.5 -#https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.10.0-cp35-cp35m-linux_x86_64.whl +#https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.11.0-cp35-cp35m-linux_x86_64.whl # Mac OS X, CPU only, Python 3.4 or 3.5: -#https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.10.0-py3-none-any.whl +#https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.11.0-py3-none-any.whl # Mac OS X, GPU enabled, Python 3.4 or 3.5: -#https://storage.googleapis.com/tensorflow/mac/gpu/tensorflow-0.10.0-py3-none-any.whl +#https://storage.googleapis.com/tensorflow/mac/gpu/tensorflow-0.11.0-py3-none-any.whl