Skip to content

Commit 74e6d6c

Browse files
committed
Rebuild
1 parent 63a17a1 commit 74e6d6c

655 files changed

Lines changed: 16060 additions & 13561 deletions

File tree

Some content is hidden

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

β€Ždocs/.buildinfoβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 7e600eae8c22497c2bb29617a2788154
3+
config: 61898db0daf49ba194c21df05df11fbd
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

docs/_downloads/cf7af739df1139e092b2d7dfb6f64b2e/data_parallel_tutorial.ipynb renamed to docs/_downloads/00b223eb859cdca3a1b8c4ada62033a4/data_parallel_tutorial.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
"name": "python",
158158
"nbconvert_exporter": "python",
159159
"pygments_lexer": "ipython3",
160-
"version": "3.8.8"
160+
"version": "3.8.13"
161161
}
162162
},
163163
"nbformat": 4,
File renamed without changes.

docs/_downloads/a607fe7aa48af0b6284b3555b090b9a2/fx_conv_bn_fuser.ipynb renamed to docs/_downloads/010b1b0fcd48f7fe9e9a88391fa2c29e/fx_conv_bn_fuser.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
"name": "python",
194194
"nbconvert_exporter": "python",
195195
"pygments_lexer": "ipython3",
196-
"version": "3.8.8"
196+
"version": "3.8.13"
197197
}
198198
},
199199
"nbformat": 4,

β€Ždocs/_downloads/0184bded18578d24a48fdfad2c701b09/polynomial_autograd.ipynbβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"outputs": [],
2828
"source": [
29-
"import torch\nimport math\n\ndtype = torch.float\ndevice = torch.device(\"cpu\")\n# device = torch.device(\"cuda:0\") # GPU\uc5d0\uc11c \uc2e4\ud589\ud558\ub824\uba74 \uc774 \uc8fc\uc11d\uc744 \uc81c\uac70\ud558\uc138\uc694\n\n# \uc785\ub825\uac12\uacfc \ucd9c\ub825\uac12\uc744 \uac16\ub294 \ud150\uc11c\ub4e4\uc744 \uc0dd\uc131\ud569\ub2c8\ub2e4.\n# requires_grad=False\uac00 \uae30\ubcf8\uac12\uc73c\ub85c \uc124\uc815\ub418\uc5b4 \uc5ed\uc804\ud30c \ub2e8\uacc4 \uc911\uc5d0 \uc774 \ud150\uc11c\ub4e4\uc5d0 \ub300\ud55c \ubcc0\ud654\ub3c4\ub97c\n# \uacc4\uc0b0\ud560 \ud544\uc694\uac00 \uc5c6\uc74c\uc744 \ub098\ud0c0\ub0c5\ub2c8\ub2e4.\nx = torch.linspace(-math.pi, math.pi, 2000, device=device, dtype=dtype)\ny = torch.sin(x)\n\n# \uac00\uc911\uce58\ub97c \uac16\ub294 \uc784\uc758\uc758 \ud150\uc11c\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4. 3\ucc28 \ub2e4\ud56d\uc2dd\uc774\ubbc0\ub85c 4\uac1c\uc758 \uac00\uc911\uce58\uac00 \ud544\uc694\ud569\ub2c8\ub2e4:\n# y = a + b x + c x^2 + d x^3\n# requires_grad=True\ub85c \uc124\uc815\ud558\uc5ec \uc5ed\uc804\ud30c \ub2e8\uacc4 \uc911\uc5d0 \uc774 \ud150\uc11c\ub4e4\uc5d0 \ub300\ud55c \ubcc0\ud654\ub3c4\ub97c \uacc4\uc0b0\ud560 \ud544\uc694\uac00\n# \uc788\uc74c\uc744 \ub098\ud0c0\ub0c5\ub2c8\ub2e4.\na = torch.randn((), device=device, dtype=dtype, requires_grad=True)\nb = torch.randn((), device=device, dtype=dtype, requires_grad=True)\nc = torch.randn((), device=device, dtype=dtype, requires_grad=True)\nd = torch.randn((), device=device, dtype=dtype, requires_grad=True)\n\nlearning_rate = 1e-6\nfor t in range(2000):\n # \uc21c\uc804\ud30c \ub2e8\uacc4: \ud150\uc11c\ub4e4 \uac04\uc758 \uc5f0\uc0b0\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc608\uce21\uac12 y\ub97c \uacc4\uc0b0\ud569\ub2c8\ub2e4.\n y_pred = a + b * x + c * x ** 2 + d * x ** 3\n\n # \ud150\uc11c\ub4e4\uac04\uc758 \uc5f0\uc0b0\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc190\uc2e4(loss)\uc744 \uacc4\uc2fc\ud558\uace0 \ucd9c\ub825\ud569\ub2c8\ub2e4.\n # \uc774 \ub54c \uc190\uc2e4\uc740 (1,) shape\uc744 \uac16\ub294 \ud150\uc11c\uc785\ub2c8\ub2e4.\n # loss.item() \uc73c\ub85c \uc190\uc2e4\uc774 \uac16\uace0 \uc788\ub294 \uc2a4\uce7c\ub77c \uac12\uc744 \uac00\uc838\uc62c \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n loss = (y_pred - y).pow(2).sum()\n if t % 100 == 99:\n print(t, loss.item())\n\n # autograd \ub97c \uc0ac\uc6a9\ud558\uc5ec \uc5ed\uc804\ud30c \ub2e8\uacc4\ub97c \uacc4\uc0b0\ud569\ub2c8\ub2e4. \uc774\ub294 requires_grad=True\ub97c \uac16\ub294\n # \ubaa8\ub4e0 \ud150\uc11c\ub4e4\uc5d0 \ub300\ud55c \uc190\uc2e4\uc758 \ubcc0\ud654\ub3c4\ub97c \uacc4\uc0b0\ud569\ub2c8\ub2e4.\n # \uc774\ud6c4 a.grad\uc640 b.grad, c.grad, d.grad\ub294 \uac01\uac01 a, b, c, d\uc5d0 \ub300\ud55c \uc190\uc2e4\uc758 \ubcc0\ud654\ub3c4\ub97c\n # \uac16\ub294 \ud150\uc11c\uac00 \ub429\ub2c8\ub2e4.\n loss.backward()\n\n # \uacbd\uc0ac\ud558\uac15\ubc95(gradient descent)\ub97c \uc0ac\uc6a9\ud558\uc5ec \uac00\uc911\uce58\ub97c \uc9c1\uc811 \uac31\uc2e0\ud569\ub2c8\ub2e4.\n # torch.no_grad()\ub85c \uac10\uc2f8\ub294 \uc774\uc720\ub294, \uac00\uc911\uce58\ub4e4\uc774 requires_grad=True \uc9c0\ub9cc\n # autograd\uc5d0\uc11c\ub294 \uc774\ub97c \ucd94\uc801\ud558\uc9c0 \uc54a\uc744 \uac83\uc774\uae30 \ub54c\ubb38\uc785\ub2c8\ub2e4.\n with torch.no_grad():\n a -= learning_rate * a.grad\n b -= learning_rate * b.grad\n c -= learning_rate * c.grad\n d -= learning_rate * d.grad\n\n # \uac00\uc911\uce58 \uac31\uc2e0 \ud6c4\uc5d0\ub294 \ubcc0\ud654\ub3c4\ub97c \uc9c1\uc811 0\uc73c\ub85c \ub9cc\ub4ed\ub2c8\ub2e4.\n a.grad = None\n b.grad = None\n c.grad = None\n d.grad = None\n\nprint(f'Result: y = {a.item()} + {b.item()} x + {c.item()} x^2 + {d.item()} x^3')"
29+
"import torch\nimport math\n\ndtype = torch.float\ndevice = torch.device(\"cpu\")\n# device = torch.device(\"cuda:0\") # GPU\uc5d0\uc11c \uc2e4\ud589\ud558\ub824\uba74 \uc774 \uc8fc\uc11d\uc744 \uc81c\uac70\ud558\uc138\uc694\n\n# \uc785\ub825\uac12\uacfc \ucd9c\ub825\uac12\uc744 \uac16\ub294 \ud150\uc11c\ub4e4\uc744 \uc0dd\uc131\ud569\ub2c8\ub2e4.\n# requires_grad=False\uac00 \uae30\ubcf8\uac12\uc73c\ub85c \uc124\uc815\ub418\uc5b4 \uc5ed\uc804\ud30c \ub2e8\uacc4 \uc911\uc5d0 \uc774 \ud150\uc11c\ub4e4\uc5d0 \ub300\ud55c \ubcc0\ud654\ub3c4\ub97c\n# \uacc4\uc0b0\ud560 \ud544\uc694\uac00 \uc5c6\uc74c\uc744 \ub098\ud0c0\ub0c5\ub2c8\ub2e4.\nx = torch.linspace(-math.pi, math.pi, 2000, device=device, dtype=dtype)\ny = torch.sin(x)\n\n# \uac00\uc911\uce58\ub97c \uac16\ub294 \uc784\uc758\uc758 \ud150\uc11c\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4. 3\ucc28 \ub2e4\ud56d\uc2dd\uc774\ubbc0\ub85c 4\uac1c\uc758 \uac00\uc911\uce58\uac00 \ud544\uc694\ud569\ub2c8\ub2e4:\n# y = a + b x + c x^2 + d x^3\n# requires_grad=True\ub85c \uc124\uc815\ud558\uc5ec \uc5ed\uc804\ud30c \ub2e8\uacc4 \uc911\uc5d0 \uc774 \ud150\uc11c\ub4e4\uc5d0 \ub300\ud55c \ubcc0\ud654\ub3c4\ub97c \uacc4\uc0b0\ud560 \ud544\uc694\uac00\n# \uc788\uc74c\uc744 \ub098\ud0c0\ub0c5\ub2c8\ub2e4.\na = torch.randn((), device=device, dtype=dtype, requires_grad=True)\nb = torch.randn((), device=device, dtype=dtype, requires_grad=True)\nc = torch.randn((), device=device, dtype=dtype, requires_grad=True)\nd = torch.randn((), device=device, dtype=dtype, requires_grad=True)\n\nlearning_rate = 1e-6\nfor t in range(2000):\n # \uc21c\uc804\ud30c \ub2e8\uacc4: \ud150\uc11c\ub4e4 \uac04\uc758 \uc5f0\uc0b0\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc608\uce21\uac12 y\ub97c \uacc4\uc0b0\ud569\ub2c8\ub2e4.\n y_pred = a + b * x + c * x ** 2 + d * x ** 3\n\n # \ud150\uc11c\ub4e4\uac04\uc758 \uc5f0\uc0b0\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc190\uc2e4(loss)\uc744 \uacc4\uc0b0\ud558\uace0 \ucd9c\ub825\ud569\ub2c8\ub2e4.\n # \uc774 \ub54c \uc190\uc2e4\uc740 (1,) shape\uc744 \uac16\ub294 \ud150\uc11c\uc785\ub2c8\ub2e4.\n # loss.item() \uc73c\ub85c \uc190\uc2e4\uc774 \uac16\uace0 \uc788\ub294 \uc2a4\uce7c\ub77c \uac12\uc744 \uac00\uc838\uc62c \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n loss = (y_pred - y).pow(2).sum()\n if t % 100 == 99:\n print(t, loss.item())\n\n # autograd \ub97c \uc0ac\uc6a9\ud558\uc5ec \uc5ed\uc804\ud30c \ub2e8\uacc4\ub97c \uacc4\uc0b0\ud569\ub2c8\ub2e4. \uc774\ub294 requires_grad=True\ub97c \uac16\ub294\n # \ubaa8\ub4e0 \ud150\uc11c\ub4e4\uc5d0 \ub300\ud55c \uc190\uc2e4\uc758 \ubcc0\ud654\ub3c4\ub97c \uacc4\uc0b0\ud569\ub2c8\ub2e4.\n # \uc774\ud6c4 a.grad\uc640 b.grad, c.grad, d.grad\ub294 \uac01\uac01 a, b, c, d\uc5d0 \ub300\ud55c \uc190\uc2e4\uc758 \ubcc0\ud654\ub3c4\ub97c\n # \uac16\ub294 \ud150\uc11c\uac00 \ub429\ub2c8\ub2e4.\n loss.backward()\n\n # \uacbd\uc0ac\ud558\uac15\ubc95(gradient descent)\ub97c \uc0ac\uc6a9\ud558\uc5ec \uac00\uc911\uce58\ub97c \uc9c1\uc811 \uac31\uc2e0\ud569\ub2c8\ub2e4.\n # torch.no_grad()\ub85c \uac10\uc2f8\ub294 \uc774\uc720\ub294, \uac00\uc911\uce58\ub4e4\uc774 requires_grad=True \uc9c0\ub9cc\n # autograd\uc5d0\uc11c\ub294 \uc774\ub97c \ucd94\uc801\ud558\uc9c0 \uc54a\uc744 \uac83\uc774\uae30 \ub54c\ubb38\uc785\ub2c8\ub2e4.\n with torch.no_grad():\n a -= learning_rate * a.grad\n b -= learning_rate * b.grad\n c -= learning_rate * c.grad\n d -= learning_rate * d.grad\n\n # \uac00\uc911\uce58 \uac31\uc2e0 \ud6c4\uc5d0\ub294 \ubcc0\ud654\ub3c4\ub97c \uc9c1\uc811 0\uc73c\ub85c \ub9cc\ub4ed\ub2c8\ub2e4.\n a.grad = None\n b.grad = None\n c.grad = None\n d.grad = None\n\nprint(f'Result: y = {a.item()} + {b.item()} x + {c.item()} x^2 + {d.item()} x^3')"
3030
]
3131
}
3232
],
@@ -46,7 +46,7 @@
4646
"name": "python",
4747
"nbconvert_exporter": "python",
4848
"pygments_lexer": "ipython3",
49-
"version": "3.8.8"
49+
"version": "3.8.13"
5050
}
5151
},
5252
"nbformat": 4,

docs/_downloads/d1cc6fb4e467c3f398247dc8a72f0c42/autograd_tutorial_old.py renamed to docs/_downloads/02a3585258ca128c1fd02de7408efc9d/autograd_tutorial_old.py

File renamed without changes.
File renamed without changes.

docs/_downloads/79e816859cf10d6ec7f1ec813a32db0d/model_parallel_tutorial.py renamed to docs/_downloads/0326e8df25339cdcf120ea0f309ebc26/model_parallel_tutorial.py

File renamed without changes.

β€Ždocs/_downloads/032d653a4f5a9c1ec32b9fc7c989ffe1/seq2seq_translation_tutorial.ipynbβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@
423423
"name": "python",
424424
"nbconvert_exporter": "python",
425425
"pygments_lexer": "ipython3",
426-
"version": "3.8.8"
426+
"version": "3.8.13"
427427
}
428428
},
429429
"nbformat": 4,

docs/_downloads/354f01746abc152e800339bf430d649c/captumyt.ipynb renamed to docs/_downloads/037820e5c5994c62825b2fe8aac65d19/captumyt.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@
272272
"name": "python",
273273
"nbconvert_exporter": "python",
274274
"pygments_lexer": "ipython3",
275-
"version": "3.8.8"
275+
"version": "3.8.13"
276276
}
277277
},
278278
"nbformat": 4,

0 commit comments

Comments
Β (0)