Skip to content

Commit f743bbc

Browse files
Merge pull request #2164 from gokullan:patch-1
PiperOrigin-RevId: 501640503
2 parents 70abb02 + fc88fff commit f743bbc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

site/en/tutorials/load_data/images.ipynb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,8 @@
150150
"source": [
151151
"import pathlib\n",
152152
"dataset_url = \"https://storage.googleapis.com/download.tensorflow.org/example_images/flower_photos.tgz\"\n",
153-
"data_dir = tf.keras.utils.get_file(origin=dataset_url,\n",
154-
" fname='flower_photos',\n",
155-
" untar=True)\n",
156-
"data_dir = pathlib.Path(data_dir)"
153+
"archive = tf.keras.utils.get_file(origin=dataset_url, extract=True)\n",
154+
"data_dir = pathlib.Path(archive).with_suffix('')"
157155
]
158156
},
159157
{

0 commit comments

Comments
 (0)