We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4ab8e0 commit 8822d90Copy full SHA for 8822d90
site/en/tutorials/load_data/text.ipynb
@@ -689,8 +689,7 @@
689
},
690
"outputs": [],
691
"source": [
692
- "# `vocab_size` is `VOCAB_SIZE + 1` since `0` is used additionally for padding.\n",
693
- "int_model = create_model(vocab_size=VOCAB_SIZE + 1, num_labels=4)\n",
+ "int_model = create_model(vocab_size=VOCAB_SIZE, num_labels=4)\n",
694
"int_model.compile(\n",
695
" loss=losses.SparseCategoricalCrossentropy(from_logits=True),\n",
696
" optimizer='adam',\n",
0 commit comments