Skip to content

Commit cd763c2

Browse files
committed
Forgotten squeeze
1 parent e3a675f commit cd763c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/en/tutorials/text/word2vec.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@
750750
" negative_sampling_candidates = tf.expand_dims(\n",
751751
" negative_sampling_candidates, 1)\n",
752752
"\n",
753-
" context = tf.concat([context_class, negative_sampling_candidates], 0)\n",
753+
" context = tf.concat([tf.squeeze(context_class,1), negative_sampling_candidates], 0)\n",
754754
" label = tf.constant([1] + [0]*num_ns, dtype=\"int64\")\n",
755755
"\n",
756756
" # Append each element from the training example to global lists.\n",

0 commit comments

Comments
 (0)