Skip to content

Commit ff7d7e6

Browse files
committed
Automated tutorials push
1 parent 01146ff commit ff7d7e6

File tree

178 files changed

+13554
-16880
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

178 files changed

+13554
-16880
lines changed

_downloads/162cf335b789dd055d4192f77cb0251c/foreach_map.ipynb

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"cell_type": "markdown",
1818
"metadata": {},
1919
"source": [
20-
"(beta) Explicit horizontal fusion with foreach\\_map and torch.compile\n",
21-
"============================================================\n",
20+
"Explicit horizontal fusion with foreach\\_map and torch.compile\n",
21+
"==============================================================\n",
2222
"\n",
2323
"**Author:** [Michael Lazos](https://github.com/mlazos)\n"
2424
]
@@ -41,10 +41,14 @@
4141
"\n",
4242
"<div style=\"background-color: #f3f4f7; padding-left: 10px; padding-top: 10px; padding-bottom: 10px; padding-right: 10px\">\n",
4343
"\n",
44-
"<p>This tutorial requires PyTorch 2.7.0 or later.</p>\n",
44+
"<p>This recipe describes a prototype feature. Prototype features are typicallyat an early stage for feedback and testing and are subject to change.</p>\n",
4545
"\n",
4646
"</div>\n",
47-
"\n"
47+
"\n",
48+
"Prerequisites\n",
49+
"=============\n",
50+
"\n",
51+
"- PyTorch v2.7.0 or later\n"
4852
]
4953
},
5054
{

_downloads/3195443a0ced3cabc0ad643537bdb5cd/introyt1_tutorial.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
{
3535
"cell_type": "code",
3636
"execution_count": null,
37-
"id": "3fbaa42d",
37+
"id": "38a1560c",
3838
"metadata": {},
3939
"outputs": [],
4040
"source": [
@@ -50,7 +50,7 @@
5050
},
5151
{
5252
"cell_type": "markdown",
53-
"id": "631e54b6",
53+
"id": "94e89df5",
5454
"metadata": {},
5555
"source": [
5656
"\n",

_downloads/4355e2cef7d17548f1e25f97a62828c4/template_tutorial.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
{
3232
"cell_type": "code",
3333
"execution_count": null,
34-
"id": "243e20eb",
34+
"id": "160d42d0",
3535
"metadata": {},
3636
"outputs": [],
3737
"source": [
@@ -47,7 +47,7 @@
4747
},
4848
{
4949
"cell_type": "markdown",
50-
"id": "d87c0429",
50+
"id": "fdaab039",
5151
"metadata": {},
5252
"source": [
5353
"\n",

_downloads/63a0f0fc7b3ffb15d3a5ac8db3d521ee/tensors_deeper_tutorial.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
{
3535
"cell_type": "code",
3636
"execution_count": null,
37-
"id": "fdaed460",
37+
"id": "311f734b",
3838
"metadata": {},
3939
"outputs": [],
4040
"source": [
@@ -50,7 +50,7 @@
5050
},
5151
{
5252
"cell_type": "markdown",
53-
"id": "e50880ea",
53+
"id": "8c4830b3",
5454
"metadata": {},
5555
"source": [
5656
"\n",

_downloads/770632dd3941d2a51b831c52ded57aa2/trainingyt.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
{
3636
"cell_type": "code",
3737
"execution_count": null,
38-
"id": "b05c97eb",
38+
"id": "b0b01bc5",
3939
"metadata": {},
4040
"outputs": [],
4141
"source": [
@@ -51,7 +51,7 @@
5151
},
5252
{
5353
"cell_type": "markdown",
54-
"id": "3d043e79",
54+
"id": "5959d669",
5555
"metadata": {},
5656
"source": [
5757
"\n",

_downloads/bcb9aa4fd3968b85310b970dbd86bbc3/foreach_map.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
2-
(beta) Explicit horizontal fusion with foreach_map and torch.compile
3-
============================================================
2+
Explicit horizontal fusion with foreach_map and torch.compile
3+
===============================================================
44
55
**Author:** `Michael Lazos <https://github.com/mlazos>`_
66
"""
@@ -13,11 +13,17 @@
1313
# allows conversion of any pointwise op in ``torch`` to a horiztonally fused foreach
1414
# variant. In this tutorial, we will demonstrate how to implement the Adam optimizer
1515
# with ``foreach_map`` to generate a fully fused kernel.
16-
#
1716
#
1817
# .. note::
1918
#
20-
# This tutorial requires PyTorch 2.7.0 or later.
19+
# This recipe describes a prototype feature. Prototype features are typically
20+
# at an early stage for feedback and testing and are subject to change.
21+
#
22+
# Prerequisites
23+
# -------------
24+
#
25+
# * PyTorch v2.7.0 or later
26+
#
2127

2228
#####################################################################
2329
# Model Setup

_downloads/c28f42852d456daf9af72da6c6909556/captumyt.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
{
3838
"cell_type": "code",
3939
"execution_count": null,
40-
"id": "bcbad24c",
40+
"id": "af36484e",
4141
"metadata": {},
4242
"outputs": [],
4343
"source": [
@@ -53,7 +53,7 @@
5353
},
5454
{
5555
"cell_type": "markdown",
56-
"id": "4e80cc63",
56+
"id": "810442ef",
5757
"metadata": {},
5858
"source": [
5959
"\n",

_downloads/e2e556f6b4693c2cef716dd7f40caaf6/tensorboardyt_tutorial.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
{
3636
"cell_type": "code",
3737
"execution_count": null,
38-
"id": "2ffcd889",
38+
"id": "dce6995f",
3939
"metadata": {},
4040
"outputs": [],
4141
"source": [
@@ -51,7 +51,7 @@
5151
},
5252
{
5353
"cell_type": "markdown",
54-
"id": "ad903238",
54+
"id": "26e77e7c",
5555
"metadata": {},
5656
"source": [
5757
"\n",

_downloads/ed9d4f94afb79f7dada6742a06c486a5/autogradyt_tutorial.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
{
3535
"cell_type": "code",
3636
"execution_count": null,
37-
"id": "44844848",
37+
"id": "7f1dbea4",
3838
"metadata": {},
3939
"outputs": [],
4040
"source": [
@@ -50,7 +50,7 @@
5050
},
5151
{
5252
"cell_type": "markdown",
53-
"id": "2321d663",
53+
"id": "c0294452",
5454
"metadata": {},
5555
"source": [
5656
"\n",

_downloads/fe726e041160526cf828806536922cf6/modelsyt_tutorial.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
{
3535
"cell_type": "code",
3636
"execution_count": null,
37-
"id": "e9ca788f",
37+
"id": "de2324fa",
3838
"metadata": {},
3939
"outputs": [],
4040
"source": [
@@ -50,7 +50,7 @@
5050
},
5151
{
5252
"cell_type": "markdown",
53-
"id": "3f5a7f48",
53+
"id": "71a624e5",
5454
"metadata": {},
5555
"source": [
5656
"\n",
Loading
Loading
50 Bytes
Loading
Loading
Loading
1.28 KB
Loading

_sources/advanced/dynamic_quantization_tutorial.rst.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -517,9 +517,9 @@ models run single threaded.
517517
.. code-block:: none
518518
519519
loss: 5.167
520-
elapsed time (seconds): 212.5
520+
elapsed time (seconds): 202.5
521521
loss: 5.168
522-
elapsed time (seconds): 120.8
522+
elapsed time (seconds): 119.2
523523
524524
525525
@@ -541,7 +541,7 @@ Thanks for reading! As always, we welcome any feedback, so please create an issu
541541

542542
.. rst-class:: sphx-glr-timing
543543

544-
**Total running time of the script:** ( 5 minutes 43.181 seconds)
544+
**Total running time of the script:** ( 5 minutes 31.163 seconds)
545545

546546

547547
.. _sphx_glr_download_advanced_dynamic_quantization_tutorial.py:

_sources/advanced/neural_style_tutorial.rst.txt

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -410,19 +410,23 @@ network to evaluation mode using ``.eval()``.
410410
Downloading: "https://download.pytorch.org/models/vgg19-dcbb9e9d.pth" to /var/lib/ci-user/.cache/torch/hub/checkpoints/vgg19-dcbb9e9d.pth
411411
412412
0%| | 0.00/548M [00:00<?, ?B/s]
413-
7%|7 | 39.6M/548M [00:00<00:01, 415MB/s]
414-
15%|#5 | 83.8M/548M [00:00<00:01, 443MB/s]
415-
23%|##3 | 126M/548M [00:00<00:00, 444MB/s]
416-
31%|###1 | 170M/548M [00:00<00:00, 450MB/s]
417-
39%|###8 | 214M/548M [00:00<00:00, 452MB/s]
418-
47%|####6 | 257M/548M [00:00<00:00, 454MB/s]
419-
55%|#####5 | 302M/548M [00:00<00:00, 457MB/s]
420-
63%|######2 | 345M/548M [00:00<00:00, 429MB/s]
421-
71%|####### | 387M/548M [00:00<00:00, 432MB/s]
422-
79%|#######8 | 431M/548M [00:01<00:00, 440MB/s]
423-
87%|########6 | 475M/548M [00:01<00:00, 447MB/s]
424-
95%|#########4| 520M/548M [00:01<00:00, 452MB/s]
425-
100%|##########| 548M/548M [00:01<00:00, 446MB/s]
413+
6%|5 | 32.2M/548M [00:00<00:01, 337MB/s]
414+
12%|#1 | 64.5M/548M [00:00<00:01, 321MB/s]
415+
18%|#7 | 96.2M/548M [00:00<00:01, 326MB/s]
416+
24%|##3 | 130M/548M [00:00<00:01, 338MB/s]
417+
30%|##9 | 164M/548M [00:00<00:01, 344MB/s]
418+
36%|###6 | 198M/548M [00:00<00:01, 348MB/s]
419+
42%|####2 | 232M/548M [00:00<00:00, 351MB/s]
420+
49%|####8 | 266M/548M [00:00<00:00, 352MB/s]
421+
55%|#####4 | 300M/548M [00:00<00:00, 353MB/s]
422+
61%|###### | 334M/548M [00:01<00:00, 354MB/s]
423+
67%|######7 | 368M/548M [00:01<00:00, 354MB/s]
424+
73%|#######3 | 402M/548M [00:01<00:00, 355MB/s]
425+
80%|#######9 | 436M/548M [00:01<00:00, 354MB/s]
426+
86%|########5 | 470M/548M [00:01<00:00, 356MB/s]
427+
92%|#########2| 504M/548M [00:01<00:00, 356MB/s]
428+
98%|#########8| 538M/548M [00:01<00:00, 356MB/s]
429+
100%|##########| 548M/548M [00:01<00:00, 351MB/s]
426430
427431
428432
@@ -743,22 +747,22 @@ Finally, we can run the algorithm.
743747
744748
Optimizing..
745749
run [50]:
746-
Style Loss : 4.339563 Content Loss: 4.217568
750+
Style Loss : 4.056458 Content Loss: 4.085692
747751
748752
run [100]:
749-
Style Loss : 1.126219 Content Loss: 3.017416
753+
Style Loss : 1.146801 Content Loss: 3.044314
750754
751755
run [150]:
752-
Style Loss : 0.711512 Content Loss: 2.645246
756+
Style Loss : 0.716356 Content Loss: 2.653823
753757
754758
run [200]:
755-
Style Loss : 0.482416 Content Loss: 2.489322
759+
Style Loss : 0.488466 Content Loss: 2.499625
756760
757761
run [250]:
758-
Style Loss : 0.347901 Content Loss: 2.402683
762+
Style Loss : 0.349771 Content Loss: 2.404882
759763
760764
run [300]:
761-
Style Loss : 0.264612 Content Loss: 2.347511
765+
Style Loss : 0.265840 Content Loss: 2.350914
762766
763767
764768
@@ -767,7 +771,7 @@ Finally, we can run the algorithm.
767771
768772
.. rst-class:: sphx-glr-timing
769773

770-
**Total running time of the script:** ( 0 minutes 11.418 seconds)
774+
**Total running time of the script:** ( 0 minutes 11.612 seconds)
771775

772776

773777
.. _sphx_glr_download_advanced_neural_style_tutorial.py:

_sources/advanced/numpy_extensions_tutorial.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ The backward pass computes the gradient ``wrt`` the input and the gradient ``wrt
303303
304304
.. rst-class:: sphx-glr-timing
305305

306-
**Total running time of the script:** ( 0 minutes 0.379 seconds)
306+
**Total running time of the script:** ( 0 minutes 0.367 seconds)
307307

308308

309309
.. _sphx_glr_download_advanced_numpy_extensions_tutorial.py:

_sources/advanced/python_custom_ops.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ For more detailed information, see:
487487

488488
.. rst-class:: sphx-glr-timing
489489

490-
**Total running time of the script:** ( 0 minutes 3.355 seconds)
490+
**Total running time of the script:** ( 0 minutes 3.405 seconds)
491491

492492

493493
.. _sphx_glr_download_advanced_python_custom_ops.py:

_sources/beginner/Intro_to_TorchScript_tutorial.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ model from C++.
7070
7171
2.7.0+cu126
7272
73-
<torch._C.Generator object at 0x7f57f2d96470>
73+
<torch._C.Generator object at 0x7f2fedd9a470>
7474
7575
7676

_sources/beginner/basics/autogradqs_tutorial.rst.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ documentation <https://pytorch.org/docs/stable/autograd.html#function>`__.
113113

114114
.. code-block:: none
115115
116-
Gradient function for z = <AddBackward0 object at 0x7f97c68fd930>
117-
Gradient function for loss = <BinaryCrossEntropyWithLogitsBackward0 object at 0x7f97c68fc640>
116+
Gradient function for z = <AddBackward0 object at 0x7f1afb9ce950>
117+
Gradient function for loss = <BinaryCrossEntropyWithLogitsBackward0 object at 0x7f1afb9cff70>
118118
119119
120120
@@ -395,7 +395,7 @@ Further Reading
395395

396396
.. rst-class:: sphx-glr-timing
397397

398-
**Total running time of the script:** ( 0 minutes 0.010 seconds)
398+
**Total running time of the script:** ( 0 minutes 0.086 seconds)
399399

400400

401401
.. _sphx_glr_download_beginner_basics_autogradqs_tutorial.py:

_sources/beginner/basics/buildmodel_tutorial.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ Further Reading
475475

476476
.. rst-class:: sphx-glr-timing
477477

478-
**Total running time of the script:** ( 0 minutes 0.497 seconds)
478+
**Total running time of the script:** ( 0 minutes 0.509 seconds)
479479

480480

481481
.. _sphx_glr_download_beginner_basics_buildmodel_tutorial.py:

0 commit comments

Comments
 (0)