Skip to content

Commit 5eb92fd

Browse files
authored
Merge branch 'main' into improve_dqn_tutorial
2 parents 2ed58af + 63f987d commit 5eb92fd

14 files changed

+152
-408
lines changed

.jenkins/validate_tutorials_built.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"beginner_source/text_sentiment_ngrams_tutorial", # not building with 2.3 RC, might be able to turn on with GA
2727
"beginner_source/t5_tutorial", # re-enable after this is fixed: https://github.com/pytorch/text/issues/1756
2828
"intermediate_source/mnist_train_nas", # used by ax_multiobjective_nas_tutorial.py
29-
"intermediate_source/torchvision_tutorial", # disable due to RuntimeError: DataLoader worker (pid(s) 20092) exited unexpectedly
3029
"intermediate_source/fx_conv_bn_fuser",
3130
"intermediate_source/_torch_export_nightly_tutorial", # does not work on release
3231
"advanced_source/super_resolution_with_onnxruntime",
@@ -38,7 +37,6 @@
3837
"prototype_source/nestedtensor",
3938
"recipes_source/recipes/saving_and_loading_models_for_inference",
4039
"recipes_source/recipes/saving_multiple_models_in_one_file",
41-
"recipes_source/recipes/loading_data_recipe",
4240
"recipes_source/recipes/tensorboard_with_pytorch",
4341
"recipes_source/recipes/what_is_state_dict",
4442
"recipes_source/recipes/profiler_recipe",

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,9 @@ example](https://github.com/pytorch/tutorials/blob/main/_static/img/thumbnails/c
326326

327327
The following command builds an HTML version of the tutorial website.
328328

329-
```
330-
make html-noplot
331-
```
329+
```
330+
make html-noplot
331+
```
332332

333333
This command does not run your tutorial code. To build the tutorial in a
334334
way that executes the code, use `make docs`. However, unless you have a

beginner_source/dist_overview.rst

Lines changed: 59 additions & 186 deletions
Large diffs are not rendered by default.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Language Modeling with ``nn.Transformer`` and torchtext
2+
===========================================================
3+
4+
The content is deprecated.
5+
6+
.. raw:: html
7+
<meta http-equiv="refresh" content="0; url=https://pytorch.org/tutorials/">

en-wordlist.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ dataset’s
335335
deallocation
336336
decompositions
337337
decorrelated
338+
devicemesh
338339
deserialize
339340
deserialized
340341
desynchronization
@@ -346,6 +347,7 @@ distractor
346347
downsample
347348
downsamples
348349
dropdown
350+
dtensor
349351
duration
350352
elementwise
351353
embeddings
@@ -482,6 +484,7 @@ prespecified
482484
pretrained
483485
prewritten
484486
primals
487+
processgroup
485488
profiler
486489
profilers
487490
protobuf
@@ -503,6 +506,7 @@ relu
503506
reproducibility
504507
rescale
505508
rescaling
509+
reshard
506510
resnet
507511
restride
508512
rewinded
@@ -515,6 +519,8 @@ runtime
515519
runtime
516520
runtimes
517521
scalable
522+
sharded
523+
Sharding
518524
softmax
519525
sparsified
520526
sparsifier

intermediate_source/torch_compile_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def init_model():
135135
######################################################################
136136
# First, let's compare inference.
137137
#
138-
# Note that in the call to ``torch.compile``, we have have the additional
138+
# Note that in the call to ``torch.compile``, we have the additional
139139
# ``mode`` argument, which we will discuss below.
140140

141141
model = init_model()

intermediate_source/torchvision_tutorial.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -382,14 +382,12 @@ def get_transform(train):
382382
# expects during training and inference time on sample data.
383383
import utils
384384

385-
386385
model = torchvision.models.detection.fasterrcnn_resnet50_fpn(weights="DEFAULT")
387386
dataset = PennFudanDataset('data/PennFudanPed', get_transform(train=True))
388387
data_loader = torch.utils.data.DataLoader(
389388
dataset,
390389
batch_size=2,
391390
shuffle=True,
392-
num_workers=4,
393391
collate_fn=utils.collate_fn
394392
)
395393

@@ -433,15 +431,13 @@ def get_transform(train):
433431
dataset,
434432
batch_size=2,
435433
shuffle=True,
436-
num_workers=4,
437434
collate_fn=utils.collate_fn
438435
)
439436

440437
data_loader_test = torch.utils.data.DataLoader(
441438
dataset_test,
442439
batch_size=1,
443440
shuffle=False,
444-
num_workers=4,
445441
collate_fn=utils.collate_fn
446442
)
447443

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Loading data in PyTorch
2+
=======================
3+
4+
The content is deprecated. See `Datasets & DataLoaders <https://pytorch.org/tutorials/beginner/basics/data_tutorial.html>`__ instead.
5+
6+
.. raw:: html
7+
8+
<meta http-equiv="Refresh" content="1; url='https://pytorch.org/tutorials/beginner/basics/data_tutorial.html'" />

recipes_source/recipes/README.txt

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,58 @@
11
PyTorch Recipes
22
---------------------------------------------
3-
1. loading_data_recipe.py
4-
Loading Data in PyTorch
5-
https://pytorch.org/tutorials/recipes/recipes/loading_data_recipe.html
6-
7-
2. defining_a_neural_network.py
3+
1. defining_a_neural_network.py
84
Defining a Neural Network in PyTorch
95
https://pytorch.org/tutorials/recipes/recipes/defining_a_neural_network.html
106

11-
3. what_is_state_dict.py
7+
2. what_is_state_dict.py
128
What is a state_dict in PyTorch
139
https://pytorch.org/tutorials/recipes/recipes/what_is_state_dict.html
1410

15-
4. saving_and_loading_models_for_inference.py
11+
3. saving_and_loading_models_for_inference.py
1612
Saving and loading models for inference in PyTorch
1713
https://pytorch.org/tutorials/recipes/recipes/saving_and_loading_models_for_inference.html
1814

19-
5. custom_dataset_transforms_loader.py
15+
4. custom_dataset_transforms_loader.py
2016
Developing Custom PyTorch Dataloaders
2117
https://pytorch.org/tutorials/recipes/recipes/custom_dataset_transforms_loader.html
2218

2319

24-
6. Captum_Recipe.py
20+
5. Captum_Recipe.py
2521
Model Interpretability using Captum
2622
https://pytorch.org/tutorials/recipes/recipes/Captum_Recipe.html
2723

28-
7. dynamic_quantization.py
24+
6. dynamic_quantization.py
2925
Dynamic Quantization
3026
https://pytorch.org/tutorials/recipes/recipes/dynamic_quantization.html
3127

32-
8. save_load_across_devices.py
28+
7. save_load_across_devices.py
3329
Saving and loading models across devices in PyTorch
3430
https://pytorch.org/tutorials/recipes/recipes/save_load_across_devices.html
3531

36-
9. saving_and_loading_a_general_checkpoint.py
32+
8. saving_and_loading_a_general_checkpoint.py
3733
Saving and loading a general checkpoint in PyTorch
3834
https://pytorch.org/tutorials/recipes/recipes/saving_and_loading_a_general_checkpoint.html
3935

40-
10. saving_and_loading_models_for_inference.py
36+
9. saving_and_loading_models_for_inference.py
4137
Saving and loading models for inference in PyTorch
4238
https://pytorch.org/tutorials/recipes/recipes/saving_and_loading_models_for_inference.html
4339

44-
11. saving_multiple_models_in_one_file.py
40+
10. saving_multiple_models_in_one_file.py
4541
Saving and loading multiple models in one file using PyTorch
4642
https://pytorch.org/tutorials/recipes/recipes/saving_multiple_models_in_one_file.html
4743

48-
12. warmstarting_model_using_parameters_from_a_different_model.py
44+
11. warmstarting_model_using_parameters_from_a_different_model.py
4945
Warmstarting models using parameters from different model
5046
https://pytorch.org/tutorials/recipes/recipes/warmstarting_model_using_parameters_from_a_different_model.html
5147

52-
13. zeroing_out_gradients.py
48+
12. zeroing_out_gradients.py
5349
Zeroing out gradients
5450
https://pytorch.org/tutorials/recipes/recipes/zeroing_out_gradients.html
5551

56-
14. mobile_perf.py
52+
13. mobile_perf.py
5753
PyTorch Mobile Performance Recipes
5854
https://pytorch.org/tutorials/recipes/mobile_perf.html
5955

60-
15. amp_recipe.py
56+
14. amp_recipe.py
6157
Automatic Mixed Precision
6258
https://pytorch.org/tutorials/recipes/amp_recipe.html

recipes_source/recipes/loading_data_recipe.py

Lines changed: 0 additions & 163 deletions
This file was deleted.

0 commit comments

Comments
 (0)