Skip to content

Commit 877f1d2

Browse files
committed
tweak wording in intro
1 parent d0b94c5 commit 877f1d2

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
This repository introduces the fundamental concepts of
22
[PyTorch](https://github.com/pytorch/pytorch)
3-
through simple code snippets.
3+
through self-contained examples.
44

55
At its core, PyTorch provides two main features:
66
- An n-dimensional Tensor, similar to numpy but can run on GPUs
@@ -444,7 +444,6 @@ for t in range(500):
444444
import torch
445445
from torch.autograd import Variable
446446

447-
448447
# N is batch size; D_in is input dimension;
449448
# H is hidden dimension; D_out is output dimension.
450449
N, D_in, H, D_out = 64, 1000, 100, 10
@@ -485,7 +484,6 @@ for t in range(500):
485484

486485
# Calling the step function on an Optimizer makes an update to its parameters
487486
optimizer.step()
488-
489487
```
490488

491489

@@ -616,5 +614,4 @@ for t in range(500):
616614
optimizer.zero_grad()
617615
loss.backward()
618616
optimizer.step()
619-
620617
```

README_raw.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
This repository introduces the fundamental concepts of
22
[PyTorch](https://github.com/pytorch/pytorch)
3-
through simple code snippets.
3+
through self-contained examples.
44

55
At its core, PyTorch provides two main features:
66
- An n-dimensional Tensor, similar to numpy but can run on GPUs

0 commit comments

Comments
 (0)