aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/examples/udacity
diff options
context:
space:
mode:
authorGravatar Ashutosh Das <ashutoshdas96@users.noreply.github.com>2017-01-30 13:38:44 +0530
committerGravatar Martin Wicke <martin.wicke@gmail.com>2017-01-30 00:08:44 -0800
commit2607cc67f0e4a6cd313399e1f68cc4b9857fe700 (patch)
treecd8d6ab9bb77307056631fa0d755909dde86c166 /tensorflow/examples/udacity
parent6a8482a5c8dcf745452663d9d887cd07fba31ad4 (diff)
Fixed error due to api changes (#7099)
Diffstat (limited to 'tensorflow/examples/udacity')
-rw-r--r--tensorflow/examples/udacity/5_word2vec.ipynb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/examples/udacity/5_word2vec.ipynb b/tensorflow/examples/udacity/5_word2vec.ipynb
index ec6413a0a3..9d4243d7ae 100644
--- a/tensorflow/examples/udacity/5_word2vec.ipynb
+++ b/tensorflow/examples/udacity/5_word2vec.ipynb
@@ -442,8 +442,8 @@
" embed = tf.nn.embedding_lookup(embeddings, train_dataset)\n",
" # Compute the softmax loss, using a sample of the negative labels each time.\n",
" loss = tf.reduce_mean(\n",
- " tf.nn.sampled_softmax_loss(softmax_weights, softmax_biases, embed,\n",
- " train_labels, num_sampled, vocabulary_size))\n",
+ " tf.nn.sampled_softmax_loss(weights=softmax_weights, biases=softmax_biases, inputs=embed,\n",
+ " labels=train_labels, num_sampled=num_sampled, num_classes=vocabulary_size))\n",
"\n",
" # Optimizer.\n",
" # Note: The optimizer will optimize the softmax_weights AND the embeddings.\n",