Skip to content

Commit 20b77a6

Browse files
committed
Automated tutorials push
1 parent 9a6a2a3 commit 20b77a6

File tree

196 files changed

+12946
-13147
lines changed

Some content is hidden

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

196 files changed

+12946
-13147
lines changed

_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": "1da94067",
37+
"id": "b141f85a",
3838
"metadata": {},
3939
"outputs": [],
4040
"source": [
@@ -50,7 +50,7 @@
5050
},
5151
{
5252
"cell_type": "markdown",
53-
"id": "baabd5a8",
53+
"id": "3902febc",
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": "7d34295f",
34+
"id": "dcb8e3b4",
3535
"metadata": {},
3636
"outputs": [],
3737
"source": [
@@ -47,7 +47,7 @@
4747
},
4848
{
4949
"cell_type": "markdown",
50-
"id": "eb3e4dd7",
50+
"id": "4216757e",
5151
"metadata": {},
5252
"source": [
5353
"\n",

_downloads/63a0f0fc7b3ffb15d3a5ac8db3d521ee/tensors_deeper_tutorial.ipynb

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
{
3535
"cell_type": "code",
3636
"execution_count": null,
37-
"id": "eecbcc4d",
37+
"id": "c26a36a4",
3838
"metadata": {},
3939
"outputs": [],
4040
"source": [
@@ -50,7 +50,7 @@
5050
},
5151
{
5252
"cell_type": "markdown",
53-
"id": "bf52623e",
53+
"id": "efd80a7e",
5454
"metadata": {},
5555
"source": [
5656
"\n",
@@ -605,11 +605,11 @@
605605
"m2 = torch.tensor([[3., 0.], [0., 3.]]) # three times identity matrix\n",
606606
"\n",
607607
"print('\\nVectors & Matrices:')\n",
608-
"print(torch.cross(v2, v1)) # negative of z unit vector (v1 x v2 == -v2 x v1)\n",
608+
"print(torch.linalg.cross(v2, v1)) # negative of z unit vector (v1 x v2 == -v2 x v1)\n",
609609
"print(m1)\n",
610-
"m3 = torch.matmul(m1, m2)\n",
610+
"m3 = torch.linalg.matmul(m1, m2)\n",
611611
"print(m3) # 3 times m1\n",
612-
"print(torch.svd(m3)) # singular value decomposition"
612+
"print(torch.linalg.svd(m3)) # singular value decomposition"
613613
]
614614
},
615615
{
@@ -619,6 +619,9 @@
619619
"This is a small sample of operations. For more details and the full\n",
620620
"inventory of math functions, have a look at the\n",
621621
"[documentation](https://pytorch.org/docs/stable/torch.html#math-operations).\n",
622+
"For more details and the full inventory of linear algebra operations,\n",
623+
"have a look at this\n",
624+
"[documentation](https://pytorch.org/docs/stable/linalg.html).\n",
622625
"\n",
623626
"Altering Tensors in Place\n",
624627
"=========================\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": "5787a3f8",
38+
"id": "6ba7b304",
3939
"metadata": {},
4040
"outputs": [],
4141
"source": [
@@ -51,7 +51,7 @@
5151
},
5252
{
5353
"cell_type": "markdown",
54-
"id": "f19dfcf8",
54+
"id": "8208d621",
5555
"metadata": {},
5656
"source": [
5757
"\n",

_downloads/be017e7b39198fdf668c138fd8d57abe/tensors_deeper_tutorial.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,17 +448,19 @@
448448
m2 = torch.tensor([[3., 0.], [0., 3.]]) # three times identity matrix
449449

450450
print('\nVectors & Matrices:')
451-
print(torch.cross(v2, v1)) # negative of z unit vector (v1 x v2 == -v2 x v1)
451+
print(torch.linalg.cross(v2, v1)) # negative of z unit vector (v1 x v2 == -v2 x v1)
452452
print(m1)
453-
m3 = torch.matmul(m1, m2)
453+
m3 = torch.linalg.matmul(m1, m2)
454454
print(m3) # 3 times m1
455-
print(torch.svd(m3)) # singular value decomposition
455+
print(torch.linalg.svd(m3)) # singular value decomposition
456456

457457

458458
##################################################################################
459459
# This is a small sample of operations. For more details and the full inventory of
460460
# math functions, have a look at the
461461
# `documentation <https://pytorch.org/docs/stable/torch.html#math-operations>`__.
462+
# For more details and the full inventory of linear algebra operations, have a
463+
# look at this `documentation <https://pytorch.org/docs/stable/linalg.html>`__.
462464
#
463465
# Altering Tensors in Place
464466
# ~~~~~~~~~~~~~~~~~~~~~~~~~

_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": "075de5f3",
40+
"id": "0cdf7fe2",
4141
"metadata": {},
4242
"outputs": [],
4343
"source": [
@@ -53,7 +53,7 @@
5353
},
5454
{
5555
"cell_type": "markdown",
56-
"id": "1bf8a827",
56+
"id": "4631a30d",
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": "86e2a023",
38+
"id": "c1822070",
3939
"metadata": {},
4040
"outputs": [],
4141
"source": [
@@ -51,7 +51,7 @@
5151
},
5252
{
5353
"cell_type": "markdown",
54-
"id": "1aafb454",
54+
"id": "6aec81ec",
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": "119a459a",
37+
"id": "21b77c1d",
3838
"metadata": {},
3939
"outputs": [],
4040
"source": [
@@ -50,7 +50,7 @@
5050
},
5151
{
5252
"cell_type": "markdown",
53-
"id": "2f842017",
53+
"id": "8f29e63c",
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": "dba7e04e",
37+
"id": "676cfb21",
3838
"metadata": {},
3939
"outputs": [],
4040
"source": [
@@ -50,7 +50,7 @@
5050
},
5151
{
5252
"cell_type": "markdown",
53-
"id": "01f1d01b",
53+
"id": "45df25e3",
5454
"metadata": {},
5555
"source": [
5656
"\n",

_images/sphx_glr_coding_ddpg_001.png

-2.44 KB
Loading

0 commit comments

Comments
 (0)