Skip to content

Commit f26b602

Browse files
Use image_dataset_from_directory from tf.keras.utils
PiperOrigin-RevId: 414059008
1 parent 0747fe6 commit f26b602

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/en/tutorials/images/transfer_learning_with_hub.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@
357357
" batch_size=batch_size\n",
358358
")\n",
359359
"\n",
360-
"val_ds = tf.keras.preprocessing.image_dataset_from_directory(\n",
360+
"val_ds = tf.keras.utils.image_dataset_from_directory(\n",
361361
" str(data_root),\n",
362362
" validation_split=0.2,\n",
363363
" subset=\"validation\",\n",

0 commit comments

Comments
 (0)