From 0fe684b5ebfc59d1cf5a519e3f128ad6eea07da8 Mon Sep 17 00:00:00 2001 From: Siju Samuel Date: Fri, 5 Jul 2019 09:57:23 +0530 Subject: [PATCH] deprecated keep_prob removed from dropout in tutorials/mnist/mnist_with_summaries.py --- tensorflow/examples/tutorials/mnist/mnist_with_summaries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/examples/tutorials/mnist/mnist_with_summaries.py b/tensorflow/examples/tutorials/mnist/mnist_with_summaries.py index 3485e7afbf1..efe35ca096f 100644 --- a/tensorflow/examples/tutorials/mnist/mnist_with_summaries.py +++ b/tensorflow/examples/tutorials/mnist/mnist_with_summaries.py @@ -103,7 +103,7 @@ def train(): with tf.name_scope('dropout'): keep_prob = tf.placeholder(tf.float32) tf.summary.scalar('dropout_keep_probability', keep_prob) - dropped = tf.nn.dropout(hidden1, keep_prob) + dropped = tf.nn.dropout(hidden1, rate=(1 - keep_prob)) # Do not apply softmax activation yet, see below. y = nn_layer(dropped, 500, 10, 'layer2', act=tf.identity)