forked from tensorflow/datasets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_index.yaml
60 lines (55 loc) · 2.43 KB
/
_index.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
book_path: /datasets/_book.yaml
project_path: /datasets/_project.yaml
description: A collection of datasets ready to use with TensorFlow or other Python ML frameworks,
such as Jax, enabling easy-to-use and high-performance input pipelines.
landing_page:
custom_css_path: /site-assets/css/style.css
rows:
- heading: "TensorFlow Datasets: a collection of ready-to-use datasets."
items:
- description: >
TensorFlow Datasets is a collection of datasets ready to use, with TensorFlow or other
Python ML frameworks, such as Jax.
All datasets are exposed as
<a href="https://www.tensorflow.org/api_docs/python/tf/data/Dataset">
<code>tf.data.Datasets</code>
</a>,
enabling easy-to-use and high-performance
input pipelines.
To get started see the
<a href="./overview">guide</a>
and our
<a href="./catalog">list of datasets</a>.
- code_block: |
<pre class = "prettyprint">
import tensorflow.compat.v2 as tf
import tensorflow_datasets as tfds
# Construct a tf.data.Dataset
ds = tfds.load('mnist', split='train', shuffle_files=True)
# Build your input pipeline
ds = ds.shuffle(1024).batch(32).prefetch(tf.data.experimental.AUTOTUNE)
for example in ds.take(1):
image, label = example["image"], example["label"]
</pre>
{% dynamic if request.tld != 'cn' %}
<a class="colab-button" target="_blank" href="https://colab.research.google.com/github/tensorflow/datasets/blob/master/docs/_index.ipynb">Run in a <span>Notebook</span></a>
{% dynamic endif %}
- classname: devsite-landing-row-cards
items:
- heading: Introducing TensorFlow Datasets
image_path: /resources/images/tf-logo-card-16x9.png
path: https://blog.tensorflow.org/2019/02/introducing-tensorflow-datasets.html
buttons:
- label: Read on TensorFlow Blog
path: https://blog.tensorflow.org/2019/02/introducing-tensorflow-datasets.html
- heading: TensorFlow Datasets on GitHub
image_path: /resources/images/github-card-16x9.png
path: https://github.com/tensorflow/datasets
buttons:
- label: View on GitHub
path: https://github.com/tensorflow/datasets
- heading: "TensorFlow Datasets (TF Dev Summit '19)"
youtube_id: -nTe44WT0ZI
buttons:
- label: Watch the video
path: https://www.youtube.com/watch?v=-nTe44WT0ZI