Skip to content

Commit

Permalink
fixed the tf issue #74564
Browse files Browse the repository at this point in the history
I looked into the issue and found out that after the evaluation we are getting a list of size 4 where only the last one is the accuracy of the export_model. So ignored all the other output to only get the required loss and accuracy
  • Loading branch information
sanskarmodi8 authored Aug 28, 2024
1 parent 5c5a466 commit 27df800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/en/tutorials/keras/text_classification.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@
")\n",
"\n",
"# Test it with `raw_test_ds`, which yields raw strings\n",
"loss, accuracy = export_model.evaluate(raw_test_ds)\n",
"_, _, loss, accuracy = export_model.evaluate(raw_test_ds)\n",
"print(accuracy)"
]
},
Expand Down

0 comments on commit 27df800

Please sign in to comment.