aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/docs_src/tutorials/_index.yaml
blob: 953411468978846724b52bae73537e80694a78ee (plain)
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
project_path: /_project.yaml
book_path: /_book.yaml
description: <!--no description-->
landing_page:
  custom_css_path: /site-assets/css/style.css
  show_side_navs: True
  rows:
  - description: >
      <h1 class="hide-from-toc">Get Started with TensorFlow</h1>
      <p>
        TensorFlow is an open-source machine learning library for research and
        production. TensorFlow offers APIs for beginners and experts to develop
        for desktop, mobile, web, and cloud. See the sections below to get
        started.
      </p>
    items:
    - custom_html: >
        <div class="devsite-landing-row-item-description">
          <h3 class="hide-from-toc">Learn and use ML</h3>
          <div class="devsite-landing-row-item-description-content">
            <p>
              The high-level Keras API provides building blocks to create and
              train deep learning models. Start with these beginner-friendly
              notebook examples, then read the
              <a href="/guide/keras">TensorFlow Keras guide</a>.
            </p>
            <ol style="padding-left:20px;">
              <li><a href="./keras/basic_classification">Basic classification</a></li>
              <li><a href="./keras/basic_text_classification">Text classification</a></li>
              <li><a href="./keras/basic_regression">Regression</a></li>
              <li><a href="./keras/overfit_and_underfit">Overfitting and underfitting</a></li>
              <li><a href="./keras/save_and_restore_models">Save and load</a></li>
            </ol>
          </div>
          <div class="devsite-landing-row-item-buttons" style="margin-top:0;">
            <a class="button button-primary tfo-button-primary" href="/guide/keras">Read the Keras guide</a>
          </div>
        </div>
    - classname: tfo-landing-row-item-code-block
      code_block: |
        <pre class="prettyprint">
        import tensorflow as tf
        mnist = tf.keras.datasets.mnist

        (x_train, y_train),(x_test, y_test) = mnist.load_data()
        x_train, x_test = x_train / 255.0, x_test / 255.0

        model = tf.keras.models.Sequential([
          tf.keras.layers.Flatten(),
          tf.keras.layers.Dense(512, activation=tf.nn.relu),
          tf.keras.layers.Dropout(0.2),
          tf.keras.layers.Dense(10, activation=tf.nn.softmax)
        ])
        model.compile(optimizer='adam',
                      loss='sparse_categorical_crossentropy',
                      metrics=['accuracy'])

        model.fit(x_train, y_train, epochs=5)
        model.evaluate(x_test, y_test)
        </pre>
        {% dynamic if request.tld != 'cn' %}
        <a class="colab-button" target="_blank" href="https://colab.research.google.com/github/tensorflow/models/blob/master/samples/core/get_started/_index.ipynb">Run in a <span>Notebook</span></a>
        {% dynamic endif %}

  - items:
    - custom_html: >
        <div class="devsite-landing-row-item-description" style="border-right: 2px solid #eee;">
          <h3 class="hide-from-toc">Research and experimentation</h3>
          <div class="devsite-landing-row-item-description-content">
            <p>
              Eager execution provides an imperative, define-by-run interface for advanced operations. Write custom layers, forward passes, and training loops with auto‑differentiation. Start with
              these notebooks, then read the <a href="/guide/eager">eager execution guide</a>.
            </p>
            <ol style="padding-left:20px;">
              <li>
                {% dynamic if request.tld == 'cn' %}
                <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/eager/python/examples/notebooks/eager_basics.ipynb" class="external">Eager execution basics</a>
                {% dynamic else %}
                <a href="https://colab.research.google.com/github/tensorflow/tensorflow/blob/master/tensorflow/contrib/eager/python/examples/notebooks/eager_basics.ipynb" class="external">Eager execution basics</a>
                {% dynamic endif %}
              </li>
              <li>
                {% dynamic if request.tld == 'cn' %}
                <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/eager/python/examples/notebooks/automatic_differentiation.ipynb" class="external">Automatic differentiation and gradient tape</a>
                {% dynamic else %}
                <a href="https://colab.research.google.com/github/tensorflow/tensorflow/blob/master/tensorflow/contrib/eager/python/examples/notebooks/automatic_differentiation.ipynb" class="external">Automatic differentiation and gradient tape</a>
                {% dynamic endif %}
              </li>
              <li>
                {% dynamic if request.tld == 'cn' %}
                <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/eager/python/examples/notebooks/custom_training.ipynb" class="external">Custom training: basics</a>
                {% dynamic else %}
                <a href="https://colab.research.google.com/github/tensorflow/tensorflow/blob/master/tensorflow/contrib/eager/python/examples/notebooks/custom_training.ipynb" class="external">Custom training: basics</a>
                {% dynamic endif %}
              </li>
              <li>
                {% dynamic if request.tld == 'cn' %}
                <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/eager/python/examples/notebooks/custom_layers.ipynb" class="external">Custom layers</a>
                {% dynamic else %}
                <a href="https://colab.research.google.com/github/tensorflow/tensorflow/blob/master/tensorflow/contrib/eager/python/examples/notebooks/custom_layers.ipynb" class="external">Custom layers</a>
                {% dynamic endif %}
              </li>
              <li><a href="./eager/custom_training_walkthrough">Custom training: walkthrough</a></li>
              <li>
                {% dynamic if request.tld == 'cn' %}
                <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/eager/python/examples/nmt_with_attention/nmt_with_attention.ipynb" class="external">Example: Neural machine translation w/ attention</a>
                {% dynamic else %}
                <a href="https://colab.research.google.com/github/tensorflow/tensorflow/blob/master/tensorflow/contrib/eager/python/examples/nmt_with_attention/nmt_with_attention.ipynb" class="external">Example: Neural machine translation w/ attention</a>
                {% dynamic endif %}
              </li>
            </ol>
          </div>
          <div class="devsite-landing-row-item-buttons">
            <a class="button button-primary tfo-button-primary" href="/guide/eager">Read the eager execution guide</a>
          </div>
        </div>
    - custom_html: >
        <div class="devsite-landing-row-item-description">
          <h3 class="hide-from-toc">ML at production scale</h3>
          <div class="devsite-landing-row-item-description-content">
            <p>
              Estimators can train large models on multiple machines in a
              production environment. TensorFlow provides a collection of
              pre-made Estimators to implement common ML algorithms. See the
              <a href="/guide/estimators">Estimators guide</a>.
            </p>
            <ol style="padding-left: 20px;">
              <li><a href="/tutorials/estimators/linear">Build a linear model with Estimators</a></li>
              <li><a href="https://github.com/tensorflow/models/tree/master/official/wide_deep" class="external">Wide and deep learning with Estimators</a></li>
              <li><a href="https://github.com/tensorflow/models/tree/master/official/boosted_trees" class="external">Boosted trees</a></li>
              <li><a href="/hub/tutorials/text_classification_with_tf_hub">How to build a simple text classifier with TF-Hub</a></li>
              <li><a href="/tutorials/estimators/cnn">Build a Convolutional Neural Network using Estimators</a></li>
            </ol>
          </div>
          <div class="devsite-landing-row-item-buttons">
            <a class="button button-primary tfo-button-primary" href="/guide/estimators">Read the Estimators guide</a>
          </div>
        </div>

  - description: >
      <h2 class="hide-from-toc">Google Colab&#58; An easy way to learn and use TensorFlow</h2>
      <p>
        <a href="https://colab.research.google.com/notebooks/welcome.ipynb" class="external">Colaboratory</a>
        is a Google research project created to help disseminate machine learning
        education and research. It's a Jupyter notebook environment that requires
        no setup to use and runs entirely in the cloud.
        <a href="https://medium.com/tensorflow/colab-an-easy-way-to-learn-and-use-tensorflow-d74d1686e309" class="external">Read the blog post</a>.
      </p>

  - description: >
      <h2 class="hide-from-toc">Build your first ML app</h2>
      <p>Create and deploy TensorFlow models on web and mobile.</p>
    background: grey
    items:
    - custom_html: >
        <div class="devsite-landing-row-item-description" style="background: #fff; padding:32px;">
          <a href="https://js.tensorflow.org">
            <h3 class="hide-from-toc">Web developers</h3>
          </a>
          <div class="devsite-landing-row-item-description-content">
            TensorFlow.js is a WebGL accelerated, JavaScript library to train and
            deploy ML models in the browser and for Node.js.
          </div>
        </div>
    - custom_html: >
        <div class="devsite-landing-row-item-description" style="background: #fff; padding:32px;">
          <a href="/mobile/tflite/">
            <h3 class="hide-from-toc">Mobile developers</h3>
          </a>
          <div class="devsite-landing-row-item-description-content">
            TensorFlow Lite is lightweight solution for mobile and embedded devices.
          </div>
        </div>

  - description: >
      <h2 class="hide-from-toc">Videos and updates</h2>
      <p>
        Subscribe to the TensorFlow
        <a href="https://www.youtube.com/tensorflow" class="external">YouTube channel</a>
        and <a href="https://blog.tensorflow.org" class="external">blog</a> for
        the latest videos and updates.
      </p>
    items:
    - description: >
        <h3 class="hide-from-toc">Get started with TensorFlow's High-Level APIs</h3>
      youtube_id: tjsHSIG8I08
      buttons:
      - label: Watch the video
        path: https://www.youtube.com/watch?v=tjsHSIG8I08
    - description: >
        <h3 class="hide-from-toc">Eager execution</h3>
      youtube_id: T8AW0fKP0Hs
      background: grey
      buttons:
      - label: Watch the video
        path: https://www.youtube.com/watch?v=T8AW0fKP0Hs
    - description: >
        <h3 class="hide-from-toc">tf.data: Fast, flexible, and easy-to-use input pipelines</h3>
      youtube_id: uIcqeP7MFH0
      buttons:
      - label: Watch the video
        path: https://www.youtube.com/watch?v=uIcqeP7MFH0