Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1ca4001

Browse files
committed
fix galleryitem paths
1 parent e925369 commit 1ca4001

5 files changed

Lines changed: 23 additions & 23 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Here's how to create a new tutorial:
1515
1. Create a notebook styled python file. If you want it executed while inserted into documentation, save the file with suffix `tutorial` so that file name is `your_tutorial.py`.
1616
2. Put it in one of the beginner_source, intermediate_source, advanced_source based on the level.
1717
2. Include it in the right TOC tree at index.rst
18-
3. Create a thumbnail in the index file using a command like `.. galleryitem:: beginner/your_tutorial.py`. (This is a custom directive. Argument should be a full path to the python file without a slash at the beginning.)
18+
3. Create a thumbnail in the index file using a command like `.. galleryitem:: beginner/your_tutorial.py`. (This is a custom directive. See `custom_directives.py` for more info.)
1919

2020
In case you prefer to write your tutorial in jupyter, you can use [this script](https://gist.github.com/chsasank/7218ca16f8d022e02a9c0deb94a310fe) to convert the notebook to python file. After conversion and addition to the project, please make sure the sections headings etc are in logical order.
2121

beginner_source/deep_learning_60min_blitz.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ Goal of this tutorial:
2525
/beginner/blitz/neural_networks_tutorial
2626
/beginner/blitz/cifar10_tutorial
2727

28-
.. galleryitem:: beginner/blitz/tensor_tutorial.py
28+
.. galleryitem:: /beginner/blitz/tensor_tutorial.py
2929
:figure: /_static/img/tensor_illustration_flat.png
3030

31-
.. galleryitem:: beginner/blitz/autograd_tutorial.py
31+
.. galleryitem:: /beginner/blitz/autograd_tutorial.py
3232
:figure: /_static/img/Variable.png
3333

34-
.. galleryitem:: beginner/blitz/neural_networks_tutorial.py
34+
.. galleryitem:: /beginner/blitz/neural_networks_tutorial.py
3535
:figure: /_static/img/mnist.png
3636

37-
.. galleryitem:: beginner/blitz/cifar10_tutorial.py
37+
.. galleryitem:: /beginner/blitz/cifar10_tutorial.py
3838
:figure: /_static/img/cifar10.png
3939

4040
.. raw:: html

beginner_source/deep_learning_nlp_tutorial.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ and use them on it.
3535
/beginner/nlp/advanced_tutorial
3636

3737

38-
.. galleryitem:: beginner/nlp/pytorch_tutorial.py
38+
.. galleryitem:: /beginner/nlp/pytorch_tutorial.py
3939
:intro: All of deep learning is computations on tensors, which are generalizations of a matrix that can be
4040

41-
.. galleryitem:: beginner/nlp/deep_learning_tutorial.py
41+
.. galleryitem:: /beginner/nlp/deep_learning_tutorial.py
4242
:intro: Deep learning consists of composing linearities with non-linearities in clever ways. The introduction of non-linearities allows
4343

44-
.. galleryitem:: beginner/nlp/word_embeddings_tutorial.py
44+
.. galleryitem:: /beginner/nlp/word_embeddings_tutorial.py
4545
:intro: Word embeddings are dense vectors of real numbers, one per word in your vocabulary. In NLP, it is almost always the case that your features are
4646

47-
.. galleryitem:: beginner/nlp/sequence_models_tutorial.py
47+
.. galleryitem:: /beginner/nlp/sequence_models_tutorial.py
4848
:intro: At this point, we have seen various feed-forward networks. That is, there is no state maintained by the network at all.
4949

50-
.. galleryitem:: beginner/nlp/advanced_tutorial.py
50+
.. galleryitem:: /beginner/nlp/advanced_tutorial.py
5151
:intro: Dyanmic versus Static Deep Learning Toolkits. Pytorch is a *dynamic* neural network kit.
5252

5353

beginner_source/former_torchies_tutorial.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ In this tutorial, you will learn the following:
2020
/beginner/former_torchies/nn_tutorial
2121
/beginner/former_torchies/parallelism_tutorial
2222

23-
.. galleryitem:: beginner/former_torchies/tensor_tutorial.py
23+
.. galleryitem:: /beginner/former_torchies/tensor_tutorial.py
2424
:figure: /_static/img/tensor_illustration_flat.png
2525

26-
.. galleryitem:: beginner/former_torchies/autograd_tutorial.py
26+
.. galleryitem:: /beginner/former_torchies/autograd_tutorial.py
2727
:figure: /_static/img/Variable.png
2828

29-
.. galleryitem:: beginner/former_torchies/nn_tutorial.py
29+
.. galleryitem:: /beginner/former_torchies/nn_tutorial.py
3030
:figure: /_static/img/torch-nn-vs-pytorch-nn.png
3131

32-
.. galleryitem:: beginner/former_torchies/parallelism_tutorial.py
32+
.. galleryitem:: /beginner/former_torchies/parallelism_tutorial.py
3333

3434
.. raw:: html
3535

beginner_source/pytorch_with_examples.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,9 @@ You can browse the above examples here.
262262
Tensors
263263
-------
264264

265-
.. galleryitem:: beginner/examples_tensor/two_layer_net_numpy.py
265+
.. galleryitem:: /beginner/examples_tensor/two_layer_net_numpy.py
266266

267-
.. galleryitem:: beginner/examples_tensor/two_layer_net_tensor.py
267+
.. galleryitem:: /beginner/examples_tensor/two_layer_net_tensor.py
268268

269269
.. raw:: html
270270

@@ -273,11 +273,11 @@ Tensors
273273
Autograd
274274
--------
275275

276-
.. galleryitem:: beginner/examples_autograd/two_layer_net_autograd.py
276+
.. galleryitem:: /beginner/examples_autograd/two_layer_net_autograd.py
277277

278-
.. galleryitem:: beginner/examples_autograd/two_layer_net_custom_function.py
278+
.. galleryitem:: /beginner/examples_autograd/two_layer_net_custom_function.py
279279

280-
.. galleryitem:: beginner/examples_autograd/tf_two_layer_net.py
280+
.. galleryitem:: /beginner/examples_autograd/tf_two_layer_net.py
281281

282282
.. raw:: html
283283

@@ -286,13 +286,13 @@ Autograd
286286
`nn` module
287287
-----------
288288

289-
.. galleryitem:: beginner/examples_nn/two_layer_net_nn.py
289+
.. galleryitem:: /beginner/examples_nn/two_layer_net_nn.py
290290

291-
.. galleryitem:: beginner/examples_nn/two_layer_net_optim.py
291+
.. galleryitem:: /beginner/examples_nn/two_layer_net_optim.py
292292

293-
.. galleryitem:: beginner/examples_nn/two_layer_net_module.py
293+
.. galleryitem:: /beginner/examples_nn/two_layer_net_module.py
294294

295-
.. galleryitem:: beginner/examples_nn/dynamic_net.py
295+
.. galleryitem:: /beginner/examples_nn/dynamic_net.py
296296

297297
.. raw:: html
298298

0 commit comments

Comments
 (0)