aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/examples/udacity
diff options
context:
space:
mode:
authorGravatar Yukun Chen <cykustcc@users.noreply.github.com>2018-02-12 02:05:37 -0500
committerGravatar Gunhan Gulsoy <gunan@google.com>2018-02-11 23:05:37 -0800
commitb9f548d041ba8d66102c6d195e645051f1bee52f (patch)
treeecd9853729c6b21f824b5d7ae66556009cc8bd68 /tensorflow/examples/udacity
parent8330cce0556893a7236d87a09e7c495c55197de0 (diff)
Fix warning about keep_dims. keep_dims -> keepdims for tf.reduce_sum(). (#16876)
* Fix warning about keep_dims. keep_dims -> keepdims for tf.reduce_sum(). * fix test failure.
Diffstat (limited to 'tensorflow/examples/udacity')
-rw-r--r--tensorflow/examples/udacity/5_word2vec.ipynb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/examples/udacity/5_word2vec.ipynb b/tensorflow/examples/udacity/5_word2vec.ipynb
index 18c456cad7..3b43d1fb55 100644
--- a/tensorflow/examples/udacity/5_word2vec.ipynb
+++ b/tensorflow/examples/udacity/5_word2vec.ipynb
@@ -455,7 +455,7 @@
" \n",
" # Compute the similarity between minibatch examples and all embeddings.\n",
" # We use the cosine distance:\n",
- " norm = tf.sqrt(tf.reduce_sum(tf.square(embeddings), 1, keep_dims=True))\n",
+ " norm = tf.sqrt(tf.reduce_sum(tf.square(embeddings), 1, keepdims=True))\n",
" normalized_embeddings = embeddings / norm\n",
" valid_embeddings = tf.nn.embedding_lookup(\n",
" normalized_embeddings, valid_dataset)\n",