Skip to content

Commit 3d45463

Browse files
Merge pull request #2322 from sanskarmodi8:fix-tf-issue-74564
PiperOrigin-RevId: 669144821
2 parents 5c5a466 + bd582f3 commit 3d45463

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

site/en/tutorials/keras/text_classification.ipynb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -861,8 +861,8 @@
861861
")\n",
862862
"\n",
863863
"# Test it with `raw_test_ds`, which yields raw strings\n",
864-
"loss, accuracy = export_model.evaluate(raw_test_ds)\n",
865-
"print(accuracy)"
864+
"metrics = export_model.evaluate(raw_test_ds, return_dict=True)\n",
865+
"print(metrics)"
866866
]
867867
},
868868
{
@@ -969,7 +969,6 @@
969969
"accelerator": "GPU",
970970
"colab": {
971971
"name": "text_classification.ipynb",
972-
"provenance": [],
973972
"toc_visible": true
974973
},
975974
"kernelspec": {

0 commit comments

Comments
 (0)