Skip to content

Commit 9986589

Browse files
pierrot0copybara-github
authored andcommitted
Overview documentation: mention versioning and link to dedicated document.
PiperOrigin-RevId: 257510847
1 parent 3f12c3d commit 9986589

File tree

1 file changed

+24
-23
lines changed

1 file changed

+24
-23
lines changed

docs/overview.ipynb

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -213,31 +213,32 @@
213213
"mnist_train"
214214
],
215215
"execution_count": 5,
216-
"outputs": [
217-
{
218-
"output_type": "stream",
219-
"text": [
220-
"INFO:tensorflow:Reusing dataset mnist (/root/tensorflow_datasets/mnist/1.0.0)\n",
221-
"WARNING:tensorflow:From /usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/control_flow_ops.py:423: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.\n",
222-
"Instructions for updating:\n",
223-
"Colocations handled automatically by placer.\n"
224-
],
225-
"name": "stdout"
226-
},
227-
{
228-
"output_type": "execute_result",
229-
"data": {
230-
"text/plain": [
231-
"<DatasetV1Adapter shapes: {image: (28, 28, 1), label: ()}, types: {image: tf.uint8, label: tf.int64}>"
232-
]
233-
},
234-
"metadata": {
235-
"tags": []
236-
},
237-
"execution_count": 5
238-
}
216+
"outputs": []
217+
},
218+
{
219+
"cell_type": "markdown",
220+
"metadata": {
221+
"id": "D4A6yp_Ii3G-",
222+
"colab_type": "text"
223+
},
224+
"source": [
225+
"When loading a dataset, the canonical default version is used. It is however recommended to specify the major version of the dataset to use, and to advertise which version of the dataset was used in your results. See the\n",
226+
"[documentation on datasets versioning](https://github.com/tensorflow/datasets/blob/master/docs/) for more details."
239227
]
240228
},
229+
{
230+
"cell_type": "code",
231+
"metadata": {
232+
"id": "OCXCz-vhj0kE",
233+
"colab_type": "code",
234+
"colab": {}
235+
},
236+
"source": [
237+
"mnist = tfds.load(\"mnist:1.*.*\")"
238+
],
239+
"execution_count": 0,
240+
"outputs": []
241+
},
241242
{
242243
"metadata": {
243244
"colab_type": "text",

0 commit comments

Comments
 (0)