Skip to content

Commit

Permalink
Merge pull request #2322 from sanskarmodi8:fix-tf-issue-74564
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 669144821
  • Loading branch information
copybara-github committed Aug 30, 2024
2 parents 5c5a466 + bd582f3 commit 3d45463
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions site/en/tutorials/keras/text_classification.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -861,8 +861,8 @@
")\n",
"\n",
"# Test it with `raw_test_ds`, which yields raw strings\n",
"loss, accuracy = export_model.evaluate(raw_test_ds)\n",
"print(accuracy)"
"metrics = export_model.evaluate(raw_test_ds, return_dict=True)\n",
"print(metrics)"
]
},
{
Expand Down Expand Up @@ -969,7 +969,6 @@
"accelerator": "GPU",
"colab": {
"name": "text_classification.ipynb",
"provenance": [],
"toc_visible": true
},
"kernelspec": {
Expand Down

0 comments on commit 3d45463

Please sign in to comment.