Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
122 commits
Select commit Hold shift + click to select a range
688681c
refactor - till custom datasets
subramen Jan 28, 2021
abbf34b
Updated data
subramen Jan 29, 2021
95d6cdb
updated buildmodel
subramen Jan 30, 2021
c045983
update the other sections
subramen Feb 1, 2021
4e92afc
final edits
subramen Feb 1, 2021
c7e9d6d
A fix for one line comment when removing runnable code. (#1165)
Sep 24, 2020
67bb706
Update tutorials to use TensorPipeRpcBackendOptions. (#1164)
pritamdamania87 Sep 25, 2020
0b1416e
Update dynamic quant tutorial for saving quantized model (#1167)
supriyar Sep 25, 2020
afd8d15
retitle dispatcher tutorial (#1168)
Sep 28, 2020
ba29dd6
minor typo fixes (#1160)
jeffxtang Sep 29, 2020
fba61d9
Update saving_loading_models.py (#1173)
ppwwyyxx Oct 2, 2020
37f747b
Removes Outdated Trainer Tutorial (#1181)
brianjo Oct 9, 2020
2407a51
complete PyTorch quickstart proposal
sethjuarez Nov 2, 2020
acf287d
Formatting and wording updates (#27)
cassiebreviu Dec 7, 2020
15a5cbc
corrected rebase errors
sethjuarez Dec 7, 2020
74be97c
Some updates based on feedback to quickstart and build model (#29)
cassiebreviu Dec 8, 2020
a024120
updated quickstart to class model (#30)
cassiebreviu Dec 9, 2020
317bec8
Updates to quickstart main page, build model page based on feedback (…
cassiebreviu Dec 10, 2020
438903f
small formatting fix on build model page (#32)
cassiebreviu Dec 11, 2020
f59a54e
build model formatting fixes (#33)
cassiebreviu Dec 11, 2020
3da5c66
Update build_model_tutorial.py
cassiebreviu Dec 11, 2020
ce75236
Update build_model_tutorial.py
cassiebreviu Dec 11, 2020
69a8cac
Update optimization_tutorial.py
cassiebreviu Dec 14, 2020
dc66596
Update data_quickstart_tutorial.py
cassiebreviu Dec 14, 2020
0f56d12
Update data_quickstart_tutorial.py (#34)
aribornstein Dec 15, 2020
bf0e386
Update data_quickstart_tutorial.py (#35)
aribornstein Dec 15, 2020
b468223
Update data_quickstart_tutorial.py
cassiebreviu Dec 15, 2020
8d19897
Update data_quickstart_tutorial.py
cassiebreviu Dec 15, 2020
2c565e0
Update build_model_tutorial.py
cassiebreviu Dec 15, 2020
f159876
Update data_quickstart_tutorial.py (#36)
aribornstein Dec 15, 2020
a337307
build model section updates, breadcrumb test, linear wording fix (#37)
cassiebreviu Jan 12, 2021
788021f
move TOC (#39)
cassiebreviu Jan 12, 2021
310a6db
toc fix probably (#40)
cassiebreviu Jan 12, 2021
f63f2f8
how to use this guide text (#41)
cassiebreviu Jan 12, 2021
6cb5653
removed code blocks moved toc (#42)
cassiebreviu Jan 13, 2021
d90b8b1
Make misc improvements to quickstart (#43)
shwars Jan 13, 2021
3c91291
Refactor buildmodel_tutorial.py to exclude sequential net definition …
shwars Jan 14, 2021
8325503
moved quickstart home folder, added breadcrumb
shwars Jan 15, 2021
a204fe6
add callout quickstart on tutorials page, cap fix
shwars Jan 15, 2021
70f90b9
checkin by Cassie: how to run code, fixed typo
shwars Jan 16, 2021
82ed7fb
checked in by cassie: quickstart updates typo fix
shwars Jan 16, 2021
cc36453
Refactor optimization tutorial
shwars Jan 17, 2021
49134b5
Formatting fixes to optimization tutorial
shwars Jan 17, 2021
39b1c3c
quickstart home page updates
shwars Jan 17, 2021
fc8beae
tensor page edits
shwars Jan 17, 2021
824d71f
cassie checkin: data page review
shwars Jan 17, 2021
c89a337
Update save-load-run quickstart tutorial
shwars Jan 18, 2021
15fb7bc
checkin by cassie: review/fix transforms page
shwars Jan 18, 2021
044b0eb
checkin by cassie: Fixed build model page
shwars Jan 19, 2021
a3757b7
checkin by cassie: optimization page, add setup
shwars Jan 19, 2021
59a04d2
autograd and optimzation page updates
shwars Jan 20, 2021
a96ec60
checkin by cassie: save run load page review
shwars Jan 20, 2021
8fa8e82
Update beginner_source/quickstart/dataquickstart_tutorial.py
cassiebreviu Jan 20, 2021
94d1a43
Update beginner_source/quickstart/dataquickstart_tutorial.py
cassiebreviu Jan 20, 2021
450adea
Update beginner_source/quickstart/dataquickstart_tutorial.py
cassiebreviu Jan 20, 2021
99702d1
Update beginner_source/quickstart/dataquickstart_tutorial.py
cassiebreviu Jan 20, 2021
448e917
Update beginner_source/quickstart/dataquickstart_tutorial.py
cassiebreviu Jan 20, 2021
624a2d6
Update beginner_source/quickstart/transforms_tutorial.py
cassiebreviu Jan 20, 2021
bf6d137
Update beginner_source/quickstart/transforms_tutorial.py
cassiebreviu Jan 20, 2021
dc3d460
Update beginner_source/quickstart/transforms_tutorial.py
cassiebreviu Jan 20, 2021
91bbfcb
Update beginner_source/quickstart/transforms_tutorial.py
cassiebreviu Jan 20, 2021
923672c
Update beginner_source/quickstart/transforms_tutorial.py
cassiebreviu Jan 20, 2021
273348a
Update beginner_source/quickstart/transforms_tutorial.py
cassiebreviu Jan 20, 2021
0ac7b20
Update beginner_source/quickstart/transforms_tutorial.py
cassiebreviu Jan 20, 2021
3e67818
Update beginner_source/quickstart/transforms_tutorial.py
cassiebreviu Jan 20, 2021
0bd3859
Update beginner_source/quickstart/autograd_tutorial.py
cassiebreviu Jan 20, 2021
71df336
Update beginner_source/quickstart/autograd_tutorial.py
cassiebreviu Jan 20, 2021
3742e2e
Update beginner_source/quickstart/buildmodel_tutorial.py
cassiebreviu Jan 20, 2021
c4e8141
Update beginner_source/quickstart/buildmodel_tutorial.py
cassiebreviu Jan 20, 2021
44fe2cd
Update beginner_source/quickstart/buildmodel_tutorial.py
cassiebreviu Jan 20, 2021
85ba9d1
Update beginner_source/quickstart/buildmodel_tutorial.py
cassiebreviu Jan 20, 2021
b4fd18f
Update beginner_source/quickstart/buildmodel_tutorial.py
cassiebreviu Jan 20, 2021
0c9a3a3
Update beginner_source/quickstart/buildmodel_tutorial.py
cassiebreviu Jan 20, 2021
a5d7b0a
Update beginner_source/quickstart/buildmodel_tutorial.py
cassiebreviu Jan 20, 2021
7d58e9f
Update beginner_source/quickstart/buildmodel_tutorial.py
cassiebreviu Jan 20, 2021
38745c4
Update beginner_source/quickstart/buildmodel_tutorial.py
cassiebreviu Jan 20, 2021
f89daf0
Update beginner_source/quickstart/optimization_tutorial.py
cassiebreviu Jan 20, 2021
eb66e9d
checkin by cassie: fix spacing
shwars Jan 21, 2021
91707c8
Update beginner_source/quickstart/optimization_tutorial.py
cassiebreviu Jan 21, 2021
441b5cd
Update beginner_source/quickstart/optimization_tutorial.py
cassiebreviu Jan 21, 2021
7830517
Update beginner_source/quickstart/optimization_tutorial.py
cassiebreviu Jan 21, 2021
76e518d
Update beginner_source/quickstart/optimization_tutorial.py
cassiebreviu Jan 21, 2021
d6273ba
Update beginner_source/quickstart/saveloadrun_tutorial.py
cassiebreviu Jan 21, 2021
dfa5a0a
Update beginner_source/quickstart/saveloadrun_tutorial.py
cassiebreviu Jan 21, 2021
9c19a3e
Update beginner_source/quickstart/saveloadrun_tutorial.py
cassiebreviu Jan 21, 2021
3f538de
Update beginner_source/quickstart/saveloadrun_tutorial.py
cassiebreviu Jan 21, 2021
beecc68
Update beginner_source/quickstart/saveloadrun_tutorial.py
cassiebreviu Jan 21, 2021
ab71869
Update beginner_source/quickstart/saveloadrun_tutorial.py
cassiebreviu Jan 21, 2021
b68484e
Update beginner_source/quickstart/optimization_tutorial.py
cassiebreviu Jan 21, 2021
aef05f5
Update beginner_source/quickstart/optimization_tutorial.py
cassiebreviu Jan 21, 2021
f99e918
Update beginner_source/quickstart/optimization_tutorial.py
cassiebreviu Jan 21, 2021
0934d32
Update beginner_source/quickstart/optimization_tutorial.py
cassiebreviu Jan 21, 2021
42a158b
fix link
shwars Jan 21, 2021
3e0a445
Update beginner_source/quickstart/optimization_tutorial.py
cassiebreviu Jan 21, 2021
483c748
fix link
shwars Jan 21, 2021
6536a1c
Update beginner_source/quickstart/saveloadrun_tutorial.py
cassiebreviu Jan 21, 2021
327f7ec
cassie checkin: add next prev links
shwars Jan 22, 2021
8ebac69
fix links
shwars Jan 22, 2021
88d0879
fix links
shwars Jan 22, 2021
dfd9f5f
toc tree test
shwars Jan 22, 2021
3594483
cassie checkin: removed old next prev
shwars Jan 22, 2021
a4c89b6
Fix missing variable in saveloadrun_tutorial
shwars Jan 23, 2021
e9731c0
Update beginner_source/quickstart/quickstart_tutorial.py
subramen Jan 25, 2021
805a759
"DataSet" -> "Dataset"
subramen Jan 25, 2021
5f242f9
Apply suggestions from code review -- buildmodel
subramen Jan 25, 2021
ef2e881
add links to author names
shwars Jan 25, 2021
42b0376
formatting
shwars Jan 25, 2021
d1b3779
add suraj as author
cassiebreviu Jan 25, 2021
698fb87
add loading dataset to data quickstart
cassiebreviu Jan 25, 2021
ca92b81
init fucntion wording update on datasets
cassiebreviu Jan 25, 2021
e1e4d5a
added iterate to datasets section
cassiebreviu Jan 25, 2021
cbcfa05
update quickstart title to 'learn the basics'
cassiebreviu Jan 26, 2021
c45be42
refactor - till custom datasets
subramen Jan 28, 2021
68854b4
Updated data
subramen Jan 29, 2021
bcfd820
updated buildmodel
subramen Jan 30, 2021
4a6ab46
update the other sections
subramen Feb 1, 2021
8d88428
final edits
subramen Feb 1, 2021
38ec86a
Merge branch 'seth-blitz' of https://github.com/suraj813/tutorials in…
subramen Feb 1, 2021
ee12bbe
update index.rst
subramen Feb 2, 2021
d2b6458
delete devcontainer and gh workflows
subramen Feb 5, 2021
ed4fde0
restore index.rst - update with separate PR
subramen Feb 5, 2021
ba88eb7
Merge branch 'seth-blitz' into seth-blitz
subramen Feb 5, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .devcontainer/Dockerfile

This file was deleted.

21 changes: 0 additions & 21 deletions .devcontainer/devcontainer.json

This file was deleted.

33 changes: 0 additions & 33 deletions .devcontainer/requirements.txt

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/staging.yml

This file was deleted.

1 change: 1 addition & 0 deletions beginner_source/quickstart/autograd_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,3 +240,4 @@
# Further Reading
# ~~~~~~~~~~~~~~~~~
# - `Autograd Mechanics <https://pytorch.org/docs/stable/notes/autograd.html>`_

3 changes: 3 additions & 0 deletions beginner_source/quickstart/buildmodel_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ def forward(self, x):
print(f"After ReLU: {hidden1}")



#################################################
# nn.Sequential
# ^^^^^^^^^^^^^^^^^^^^^^
Expand Down Expand Up @@ -179,6 +180,7 @@ def forward(self, x):
# In this example, we iterate over each parameter, and print its size and a preview of its values.
#


print("Model structure: ", model, "\n\n")

for name, param in model.named_parameters():
Expand All @@ -194,3 +196,4 @@ def forward(self, x):
# - `torch.nn API <https://pytorch.org/docs/stable/nn.html>`_



Binary file removed beginner_source/quickstart/images/fashion_mnist.png
Binary file not shown.
Binary file not shown.
Binary file removed beginner_source/quickstart/images/typesofdata.PNG
Binary file not shown.
6 changes: 6 additions & 0 deletions beginner_source/quickstart/quickstart_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

`This tutorial assumes a basic familiarity with Python and Deep Learning concepts.`


Running the Tutorial Code
------------------
You can run this tutorial in a couple of ways:
Expand Down Expand Up @@ -168,6 +169,7 @@ def forward(self, x):
# --------------
#


#####################################################################
# Optimizing the Model Parameters
# ----------------------------------------
Expand All @@ -177,6 +179,7 @@ def forward(self, x):
loss_fn = nn.CrossEntropyLoss()
optimizer = torch.optim.SGD(model.parameters(), lr=1e-3)


#######################################################################
# In a single training loop, the model makes predictions on the training dataset (fed to it in batches), and
# backpropagates the prediction error to adjust the model's parameters.
Expand Down Expand Up @@ -245,6 +248,7 @@ def test(dataloader, model):
print("Saved PyTorch Model State to model.pth")



######################################################################
# Loading Models
# ----------------------------
Expand Down Expand Up @@ -277,8 +281,10 @@ def test(dataloader, model):
pred = model(x)
predicted, actual = classes[pred[0].argmax(0)], classes[y]
print(f'Predicted: "{predicted}", Actual: "{actual}"')


######################################################################
# Read more about `Saving & Loading your model <saveloadrun_tutorial.html>`_.
#


1 change: 1 addition & 0 deletions beginner_source/quickstart/tensor_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@
t1 = torch.cat([tensor, tensor, tensor], dim=1)
print(t1)


######################################################################
# **Arithmetic operations**

Expand Down
22 changes: 10 additions & 12 deletions index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ Welcome to PyTorch Tutorials

.. Add callout items below this line


.. customcalloutitem::
:description: Familiarize yourself with PyTorch concepts and modules. Learn how to load data, build deep neural networks, train and save your models in this quickstart guide.
:header: Learn the Basics
:button_link: beginner/quickstart/quickstart_tutorial.html
:button_text: Get started with PyTorch
:description: The 60 min blitz is the most common starting point and provides a broad view on how to use PyTorch. It covers the basics all the way to constructing deep neural networks.
:header: New to PyTorch?
:button_link: beginner/deep_learning_60min_blitz.html
:button_text: Start 60-min blitz

.. customcalloutitem::
:description: Bite-size, ready-to-deploy PyTorch code examples.
Expand Down Expand Up @@ -52,10 +51,10 @@ Welcome to PyTorch Tutorials
.. Learning PyTorch

.. customcarditem::
:header: Learn the Basics
:card_description: A step-by-step guide to building a complete ML workflow with PyTorch.
:header: Deep Learning with PyTorch: A 60 Minute Blitz
:card_description: Understand PyTorch’s Tensor library and neural networks at a high level.
:image: _static/img/thumbnails/cropped/60-min-blitz.png
:link: beginner/quickstart/quickstart_tutorial.html
:link: beginner/deep_learning_60min_blitz.html
:tags: Getting-Started

.. customcarditem::
Expand Down Expand Up @@ -166,7 +165,7 @@ Welcome to PyTorch Tutorials
:header: Language Translation with Torchtext
:card_description: Use torchtext to reprocess data from a well-known datasets containing both English and German. Then use it to train a sequence-to-sequence model.
:image: _static/img/thumbnails/cropped/Language-Translation-with-TorchText.png
:link: beginner/torchtext_translation_tutorial.html
:link: beginner/torchtext_translation.html
:tags: Text

.. Reinforcement Learning
Expand Down Expand Up @@ -446,7 +445,6 @@ Additional Resources
:includehidden:
:caption: Learning PyTorch

beginner/quickstart/quickstart_tutorial
beginner/deep_learning_60min_blitz
beginner/pytorch_with_examples
beginner/nn_tutorial
Expand Down Expand Up @@ -484,7 +482,7 @@ Additional Resources
intermediate/char_rnn_generation_tutorial
intermediate/seq2seq_translation_tutorial
beginner/text_sentiment_ngrams_tutorial
beginner/torchtext_translation_tutorial
beginner/torchtext_translation


.. toctree::
Expand Down Expand Up @@ -551,4 +549,4 @@ Additional Resources
intermediate/rpc_param_server_tutorial
intermediate/dist_pipeline_parallel_tutorial
intermediate/rpc_async_execution
advanced/rpc_ddp_tutorial
advanced/rpc_ddp_tutorial