Skip to content

Commit 1f97463

Browse files
authored
Update classification.ipynb
As mentioned in the doc https://www.tensorflow.org/api_docs/python/tf/keras/utils/get_file untar argument was deprecated in favor of extract. Replaced untar with extract
1 parent 5b96ef6 commit 1f97463

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/en/tutorials/images/classification.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
"source": [
153153
"import pathlib\n",
154154
"dataset_url = \"https://storage.googleapis.com/download.tensorflow.org/example_images/flower_photos.tgz\"\n",
155-
"data_dir = tf.keras.utils.get_file('flower_photos', origin=dataset_url, untar=True)\n",
155+
"data_dir = tf.keras.utils.get_file('flower_photos.tar', origin=dataset_url, extract=True)\n",
156156
"data_dir = pathlib.Path(data_dir)"
157157
]
158158
},

0 commit comments

Comments
 (0)