Skip to content

Commit 27df800

Browse files
authored
fixed the tf issue #74564
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
1 parent 5c5a466 commit 27df800

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/en/tutorials/keras/text_classification.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@
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",
864+
"_, _, loss, accuracy = export_model.evaluate(raw_test_ds)\n",
865865
"print(accuracy)"
866866
]
867867
},

0 commit comments

Comments
 (0)