Skip to content

Commit

Permalink
Merge pull request #2314 from tilakrayal:patch-16
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 646695243
  • Loading branch information
copybara-github committed Jun 26, 2024
2 parents 75b2672 + f04e305 commit 940d94c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions site/en/tutorials/images/transfer_learning.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1049,9 +1049,6 @@
"# Retrieve a batch of images from the test set\n",
"image_batch, label_batch = test_dataset.as_numpy_iterator().next()\n",
"predictions = model.predict_on_batch(image_batch).flatten()\n",
"\n",
"# Apply a sigmoid since our model returns logits\n",
"predictions = tf.nn.sigmoid(predictions)\n",
"predictions = tf.where(predictions < 0.5, 0, 1)\n",
"\n",
"print('Predictions:\\n', predictions.numpy())\n",
Expand Down

0 comments on commit 940d94c

Please sign in to comment.