Skip to content

Commit a3a2c6a

Browse files
committed
adding readme and image
1 parent c0ee6a5 commit a3a2c6a

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

Introduction to PyTorch for former Torchies.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,9 @@
377377
"\n",
378378
"In autograd, we introduce a `Variable` class, which is a very thin wrapper around a `Tensor`. \n",
379379
"You can access the raw tensor through the `.data` attribute, and after computing the backward pass, a gradient w.r.t. this variable is accumulated into `.grad` attribute.\n",
380-
"[Image: https://fb.quip.com/-/blob/WUCAAAluOup/gzkg-mq1VLAc3DlafCX1mg]\n",
380+
"\n",
381+
"![Variable](images/Variable.png)\n",
382+
"\n",
381383
"There's one more class which is very important for autograd implementation - a `Function`. `Variable` and `Function` are interconnected and build up an acyclic graph, that encodes a complete history of computation. Each variable has a `.creator` attribute that references a function that has created a function (except for Variables created by the user - these have `None` as `.creator`).\n",
382384
"\n",
383385
"If you want to compute the derivatives, you can call `.backward()` on a `Variable`. \n",

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
PyTorch Tutorials
2+
-----------------
3+
4+
1. [Introduction to PyTorch for former Torchies](Introduction to PyTorch for former Torchies.ipynb)
5+
- A perfect introduction to PyTorch's torch, autograd, nn and optim APIs for the former Torch user
6+
2. Custom C extensions
7+
- Write your own C code that interfaces into PyTorch

images/Variable.png

7.47 KB
Loading

0 commit comments

Comments
 (0)