Skip to content

Commit 60abeb0

Browse files
Merge pull request #2256 from vaharoni:vaharoni/text-classification-fix
PiperOrigin-RevId: 578942418
2 parents eb0f9bf + a0901ae commit 60abeb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/en/tutorials/keras/text_classification.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@
631631
"outputs": [],
632632
"source": [
633633
"model = tf.keras.Sequential([\n",
634-
" layers.Embedding(max_features + 1, embedding_dim),\n",
634+
" layers.Embedding(max_features, embedding_dim),\n",
635635
" layers.Dropout(0.2),\n",
636636
" layers.GlobalAveragePooling1D(),\n",
637637
" layers.Dropout(0.2),\n",

0 commit comments

Comments
 (0)