Skip to content

Commit

Permalink
Merge pull request #2259 from vaharoni:tutorial_text_fix
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 563950730
  • Loading branch information
copybara-github committed Sep 9, 2023
2 parents 6c7e49a + 8822d90 commit 377cb52
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions site/en/tutorials/load_data/text.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -689,8 +689,7 @@
},
"outputs": [],
"source": [
"# `vocab_size` is `VOCAB_SIZE + 1` since `0` is used additionally for padding.\n",
"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",
"int_model.compile(\n",
" loss=losses.SparseCategoricalCrossentropy(from_logits=True),\n",
" optimizer='adam',\n",
Expand Down

0 comments on commit 377cb52

Please sign in to comment.