@@ -22,6 +22,10 @@ as our running example. The network will have four parameters, and will be train
22
22
gradient descent to fit random data by minimizing the Euclidean distance
23
23
between the network output and the true output.
24
24
25
+ .. note ::
26
+ You can browse the individual examples at the
27
+ :ref: `end of this page <examples-download >`.
28
+
25
29
To run the tutorials below, make sure you have the `torch `_
26
30
and `numpy `_ packages installed.
27
31
@@ -217,3 +221,72 @@ times when defining the forward pass.
217
221
We can easily implement this model as a Module subclass:
218
222
219
223
.. includenodoc :: /beginner/examples_nn/dynamic_net.py
224
+
225
+
226
+
227
+
228
+ .. _examples-download :
229
+
230
+ Examples
231
+ ~~~~~~~~
232
+
233
+ You can browse the above examples here.
234
+
235
+ Tensors
236
+ -------
237
+
238
+ .. toctree ::
239
+ :maxdepth: 2
240
+
241
+ /beginner/examples_tensor/polynomial_numpy
242
+ /beginner/examples_tensor/polynomial_tensor
243
+
244
+ .. galleryitem :: /beginner/examples_tensor/polynomial_numpy.py
245
+
246
+ .. galleryitem :: /beginner/examples_tensor/polynomial_tensor.py
247
+
248
+ .. raw :: html
249
+
250
+ <div style =' clear :both ' ></div >
251
+
252
+ Autograd
253
+ --------
254
+
255
+ .. toctree ::
256
+ :maxdepth: 2
257
+
258
+ /beginner/examples_autograd/polynomial_autograd
259
+ /beginner/examples_autograd/polynomial_custom_function
260
+
261
+
262
+ .. galleryitem :: /beginner/examples_autograd/polynomial_autograd.py
263
+
264
+ .. galleryitem :: /beginner/examples_autograd/polynomial_custom_function.py
265
+
266
+ .. raw :: html
267
+
268
+ <div style =' clear :both ' ></div >
269
+
270
+ ``nn `` module
271
+ --------------
272
+
273
+ .. toctree ::
274
+ :maxdepth: 2
275
+
276
+ /beginner/examples_nn/polynomial_nn
277
+ /beginner/examples_nn/polynomial_optim
278
+ /beginner/examples_nn/polynomial_module
279
+ /beginner/examples_nn/dynamic_net
280
+
281
+
282
+ .. galleryitem :: /beginner/examples_nn/polynomial_nn.py
283
+
284
+ .. galleryitem :: /beginner/examples_nn/polynomial_optim.py
285
+
286
+ .. galleryitem :: /beginner/examples_nn/polynomial_module.py
287
+
288
+ .. galleryitem :: /beginner/examples_nn/dynamic_net.py
289
+
290
+ .. raw :: html
291
+
292
+ <div style =' clear :both ' ></div >
0 commit comments