Skip to content

Commit 13b6887

Browse files
committed
Removed redundant expand_dims
1 parent 9055711 commit 13b6887

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

site/en/tutorials/text/word2vec.ipynb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -747,9 +747,6 @@
747747
" name=\"negative_sampling\")\n",
748748
"\n",
749749
" # Build context and label vectors (for one target word)\n",
750-
" negative_sampling_candidates = tf.expand_dims(\n",
751-
" negative_sampling_candidates, 1)\n",
752-
"\n",
753750
" context = tf.concat([tf.squeeze(context_class,1), negative_sampling_candidates], 0)\n",
754751
" label = tf.constant([1] + [0]*num_ns, dtype=\"int64\")\n",
755752
"\n",

0 commit comments

Comments
 (0)