Skip to content

Commit b263c97

Browse files
committed
Automated tutorials push
1 parent 334061a commit b263c97

File tree

204 files changed

+16844
-15982
lines changed

Some content is hidden

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

204 files changed

+16844
-15982
lines changed

_downloads/0ccffddcfee1f815c02241b985844376/torch_compile_user_defined_triton_kernel_tutorial.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,6 @@ def sin_kernel(
227227
output = tl.sin(x)
228228
tl.store(out_ptr + offsets, output, mask=mask)
229229

230-
def sin_triton(x):
231-
out = torch.empty_like(x)
232-
n_elements = x.numel()
233-
sin_kernel[(n_elements,)](x, out, n_elements, BLOCK_SIZE=4)
234-
return out
235-
236230
######################################################################
237231
# You can invoke the ``triton_op`` in one of the following two ways.
238232

_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": "fd93c4dd",
37+
"id": "08cb6c00",
3838
"metadata": {},
3939
"outputs": [],
4040
"source": [
@@ -50,7 +50,7 @@
5050
},
5151
{
5252
"cell_type": "markdown",
53-
"id": "13993efb",
53+
"id": "76b87d77",
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": "0b7bd3cd",
34+
"id": "c26dff5f",
3535
"metadata": {},
3636
"outputs": [],
3737
"source": [
@@ -47,7 +47,7 @@
4747
},
4848
{
4949
"cell_type": "markdown",
50-
"id": "4c9e9395",
50+
"id": "24e76ea7",
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": "88e7740c",
37+
"id": "a44f97a5",
3838
"metadata": {},
3939
"outputs": [],
4040
"source": [
@@ -50,7 +50,7 @@
5050
},
5151
{
5252
"cell_type": "markdown",
53-
"id": "6aaaa644",
53+
"id": "a9601b89",
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": "c0f2ffb6",
38+
"id": "73319286",
3939
"metadata": {},
4040
"outputs": [],
4141
"source": [
@@ -51,7 +51,7 @@
5151
},
5252
{
5353
"cell_type": "markdown",
54-
"id": "58b8afc8",
54+
"id": "f4c949b1",
5555
"metadata": {},
5656
"source": [
5757
"\n",

_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": "c49ae6d6",
40+
"id": "e14c1480",
4141
"metadata": {},
4242
"outputs": [],
4343
"source": [
@@ -53,7 +53,7 @@
5353
},
5454
{
5555
"cell_type": "markdown",
56-
"id": "0fec58ed",
56+
"id": "0c23d28f",
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": "e8788757",
38+
"id": "8c4b1dc8",
3939
"metadata": {},
4040
"outputs": [],
4141
"source": [
@@ -51,7 +51,7 @@
5151
},
5252
{
5353
"cell_type": "markdown",
54-
"id": "a71e84dd",
54+
"id": "de347df5",
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": "29285e10",
37+
"id": "71e2b25d",
3838
"metadata": {},
3939
"outputs": [],
4040
"source": [
@@ -50,7 +50,7 @@
5050
},
5151
{
5252
"cell_type": "markdown",
53-
"id": "125f6aa8",
53+
"id": "2b11e675",
5454
"metadata": {},
5555
"source": [
5656
"\n",

_downloads/f827f181506a79226f4ffbcf7c9a5a50/torch_compile_user_defined_triton_kernel_tutorial.ipynb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -283,13 +283,7 @@
283283
" mask = offsets < n_elements\n",
284284
" x = tl.load(in_ptr0 + offsets, mask=mask)\n",
285285
" output = tl.sin(x)\n",
286-
" tl.store(out_ptr + offsets, output, mask=mask)\n",
287-
"\n",
288-
"def sin_triton(x):\n",
289-
" out = torch.empty_like(x)\n",
290-
" n_elements = x.numel()\n",
291-
" sin_kernel[(n_elements,)](x, out, n_elements, BLOCK_SIZE=4)\n",
292-
" return out"
286+
" tl.store(out_ptr + offsets, output, mask=mask)"
293287
]
294288
},
295289
{

_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": "6f1ec145",
37+
"id": "2ebda2a4",
3838
"metadata": {},
3939
"outputs": [],
4040
"source": [
@@ -50,7 +50,7 @@
5050
},
5151
{
5252
"cell_type": "markdown",
53-
"id": "d3b40f65",
53+
"id": "a3d22bbd",
5454
"metadata": {},
5555
"source": [
5656
"\n",

0 commit comments

Comments
 (0)