Skip to content

Commit ef90822

Browse files
authored
Update transfer_learning_with_hub.ipynb
1 parent bcdf8e0 commit ef90822

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

site/en/tutorials/images/transfer_learning_with_hub.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"\n",
6969
"This tutorial demonstrates how to:\n",
7070
"\n",
71-
"1. Use models from TensorFlow Hub with `keras`.\n",
71+
"1. Use models from TensorFlow Hub with `tf.keras`.\n",
7272
"1. Use an image classification model from TensorFlow Hub.\n",
7373
"1. Do simple transfer learning to fine-tune a model for your own image classes."
7474
]
@@ -340,7 +340,7 @@
340340
"id": "jFHdp18ccah7"
341341
},
342342
"source": [
343-
"First, load this data into the model using the image data off disk with `keras.utils.image_dataset_from_directory`, which will generate a `tf.data.Dataset`:"
343+
"First, load this data into the model using the image data off disk with `tf.keras.utils.image_dataset_from_directory`, which will generate a `tf.data.Dataset`:"
344344
]
345345
},
346346
{
@@ -401,7 +401,7 @@
401401
"id": "L0Btd0V3C8h4"
402402
},
403403
"source": [
404-
"Second, because TensorFlow Hub's convention for image models is to expect float inputs in the `[0, 1]` range, use the `keras.layers.Rescaling` preprocessing layer to achieve this."
404+
"Second, because TensorFlow Hub's convention for image models is to expect float inputs in the `[0, 1]` range, use the `tf.keras.layers.Rescaling` preprocessing layer to achieve this."
405405
]
406406
},
407407
{
@@ -410,7 +410,7 @@
410410
"id": "Rs6gfO-ApTQW"
411411
},
412412
"source": [
413-
"Note: You could also include the `keras.layers.Rescaling` layer inside the model. Refer to the [Working with preprocessing layers](https://www.tensorflow.org/guide/keras/preprocessing_layers) guide for a discussion of the tradeoffs."
413+
"Note: You could also include the `tf.keras.layers.Rescaling` layer inside the model. Refer to the [Working with preprocessing layers](https://www.tensorflow.org/guide/keras/preprocessing_layers) guide for a discussion of the tradeoffs."
414414
]
415415
},
416416
{
@@ -622,7 +622,7 @@
622622
"source": [
623623
"### Attach a classification head\n",
624624
"\n",
625-
"To complete the model, wrap the feature extractor layer in a `keras.Sequential` model and add a fully-connected layer for classification:"
625+
"To complete the model, wrap the feature extractor layer in a `tf.keras.Sequential` model and add a fully-connected layer for classification:"
626626
]
627627
},
628628
{
@@ -673,7 +673,7 @@
673673
"source": [
674674
"### Train the model\n",
675675
"\n",
676-
"Use `Model.compile` to configure the training process and add a `keras.callbacks.TensorBoard` callback to create and store logs:"
676+
"Use `Model.compile` to configure the training process and add a `tf.keras.callbacks.TensorBoard` callback to create and store logs:"
677677
]
678678
},
679679
{

0 commit comments

Comments
 (0)