Skip to content

merge from origin #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 156 commits into from
May 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
156 commits
Select commit Hold shift + click to select a range
8395532
auto-generating sphinx docs
pytorchbot Apr 30, 2018
7d53c17
auto-generating sphinx docs
pytorchbot Apr 30, 2018
8e1d992
auto-generating sphinx docs
pytorchbot Apr 30, 2018
9c50a2d
auto-generating sphinx docs
pytorchbot Apr 30, 2018
f2548ca
auto-generating sphinx docs
pytorchbot Apr 30, 2018
e4f5a06
auto-generating sphinx docs
pytorchbot Apr 30, 2018
1a627a3
auto-generating sphinx docs
pytorchbot Apr 30, 2018
22ffe5b
auto-generating sphinx docs
pytorchbot Apr 30, 2018
13c7da0
auto-generating sphinx docs
pytorchbot Apr 30, 2018
2190ba1
auto-generating sphinx docs
pytorchbot Apr 30, 2018
f4d2a5b
auto-generating sphinx docs
pytorchbot Apr 30, 2018
f3d5e6c
auto-generating sphinx docs
pytorchbot Apr 30, 2018
9cba61e
auto-generating sphinx docs
pytorchbot Apr 30, 2018
3e93d23
auto-generating sphinx docs
pytorchbot Apr 30, 2018
cd3b942
Add example of when .data can be unsafe (#31)
zou3519 Apr 30, 2018
6e773f0
auto-generating sphinx docs
pytorchbot Apr 30, 2018
824c059
auto-generating sphinx docs
pytorchbot Apr 30, 2018
4020e11
auto-generating sphinx docs
pytorchbot Apr 30, 2018
9cddb28
auto-generating sphinx docs
pytorchbot Apr 30, 2018
d40a185
auto-generating sphinx docs
pytorchbot Apr 30, 2018
41c18bd
auto-generating sphinx docs
pytorchbot Apr 30, 2018
c961e64
auto-generating sphinx docs
pytorchbot Apr 30, 2018
054fdc7
auto-generating sphinx docs
pytorchbot May 1, 2018
3d51152
auto-generating sphinx docs
pytorchbot May 1, 2018
ed05eb6
auto-generating sphinx docs
pytorchbot May 1, 2018
0989e68
auto-generating sphinx docs
pytorchbot May 1, 2018
904bb71
auto-generating sphinx docs
pytorchbot May 1, 2018
e6478ec
auto-generating sphinx docs
pytorchbot May 1, 2018
06c1508
auto-generating sphinx docs
pytorchbot May 1, 2018
0fa6ea0
auto-generating sphinx docs
pytorchbot May 1, 2018
34fd42f
auto-generating sphinx docs
pytorchbot May 1, 2018
15cd463
auto-generating sphinx docs
pytorchbot May 1, 2018
1c0bf65
auto-generating sphinx docs
pytorchbot May 1, 2018
8dfb419
auto-generating sphinx docs
pytorchbot May 1, 2018
5e1dcf6
auto-generating sphinx docs
pytorchbot May 1, 2018
fb7ec43
auto-generating sphinx docs
pytorchbot May 1, 2018
4291096
auto-generating sphinx docs
pytorchbot May 1, 2018
0788d26
auto-generating sphinx docs
pytorchbot May 1, 2018
15d760e
auto-generating sphinx docs
pytorchbot May 1, 2018
8871d04
auto-generating sphinx docs
pytorchbot May 1, 2018
d03a0d3
auto-generating sphinx docs
pytorchbot May 1, 2018
1ede423
auto-generating sphinx docs
pytorchbot May 1, 2018
efd52e2
auto-generating sphinx docs
pytorchbot May 1, 2018
eda4efb
auto-generating sphinx docs
pytorchbot May 1, 2018
ddfed1f
auto-generating sphinx docs
pytorchbot May 1, 2018
6871a43
auto-generating sphinx docs
pytorchbot May 1, 2018
83c1e97
auto-generating sphinx docs
pytorchbot May 1, 2018
920d35f
auto-generating sphinx docs
pytorchbot May 1, 2018
72d37fb
auto-generating sphinx docs
pytorchbot May 1, 2018
df48302
auto-generating sphinx docs
pytorchbot May 1, 2018
ffcb18f
auto-generating sphinx docs
pytorchbot May 1, 2018
063177c
auto-generating sphinx docs
pytorchbot May 1, 2018
7c1057b
auto-generating sphinx docs
pytorchbot May 1, 2018
9a79b40
auto-generating sphinx docs
pytorchbot May 1, 2018
7cfd2b4
auto-generating sphinx docs
pytorchbot May 1, 2018
e33668b
auto-generating sphinx docs
pytorchbot May 1, 2018
e8cba10
auto-generating sphinx docs
pytorchbot May 1, 2018
b1a9417
auto-generating sphinx docs
pytorchbot May 1, 2018
7a407ce
Delete CNAME
soumith May 1, 2018
397291a
Create CNAME
soumith May 1, 2018
2d7d109
auto-generating sphinx docs
pytorchbot May 1, 2018
fd15cef
auto-generating sphinx docs
pytorchbot May 1, 2018
7bb5ee8
auto-generating sphinx docs
pytorchbot May 1, 2018
53246d1
auto-generating sphinx docs
pytorchbot May 1, 2018
bef3fd4
auto-generating sphinx docs
pytorchbot May 1, 2018
eed71aa
auto-generating sphinx docs
pytorchbot May 1, 2018
822a467
auto-generating sphinx docs
pytorchbot May 2, 2018
9c4ec75
auto-generating sphinx docs
pytorchbot May 2, 2018
1b6407a
Delete CNAME
soumith May 2, 2018
80373d6
Create CNAME
soumith May 2, 2018
6cad6ae
auto-generating sphinx docs
pytorchbot May 2, 2018
959d412
auto-generating sphinx docs
pytorchbot May 2, 2018
a645ba1
auto-generating sphinx docs
pytorchbot May 2, 2018
8b101b3
auto-generating sphinx docs
pytorchbot May 2, 2018
d463836
auto-generating sphinx docs
pytorchbot May 2, 2018
fdf2755
push
soumith May 2, 2018
879c6fe
updated docs logo
soumith May 2, 2018
06e0987
auto-generating sphinx docs
pytorchbot May 2, 2018
c06cb11
change language
soumith May 2, 2018
01ad082
auto-generating sphinx docs
pytorchbot May 2, 2018
8d6879d
it\'s -> its (#32)
May 2, 2018
f2d60a3
update favicon
soumith May 2, 2018
f4a0cc2
Some minor edits (#33)
May 2, 2018
a9397f9
auto-generating sphinx docs
pytorchbot May 2, 2018
22832b6
auto-generating sphinx docs
pytorchbot May 2, 2018
c375dd2
auto-generating sphinx docs
pytorchbot May 2, 2018
8ef435d
auto-generating sphinx docs
pytorchbot May 2, 2018
e39808b
auto-generating sphinx docs
pytorchbot May 2, 2018
82e864b
auto-generating sphinx docs
pytorchbot May 2, 2018
0991bfc
auto-generating sphinx docs
pytorchbot May 3, 2018
87d9f88
auto-generating sphinx docs
pytorchbot May 3, 2018
d2e0811
auto-generating sphinx docs
pytorchbot May 3, 2018
80cde1f
auto-generating sphinx docs
pytorchbot May 3, 2018
268ebad
auto-generating sphinx docs
pytorchbot May 3, 2018
9b815f7
auto-generating sphinx docs
pytorchbot May 3, 2018
7b35cda
auto-generating sphinx docs
pytorchbot May 3, 2018
bc46314
auto-generating sphinx docs
pytorchbot May 3, 2018
67c48d5
auto-generating sphinx docs
pytorchbot May 3, 2018
a986934
auto-generating sphinx docs
pytorchbot May 3, 2018
c869ecb
osx cpu-only builds remove cuda warning
soumith May 3, 2018
6c6dd45
auto-generating sphinx docs
pytorchbot May 3, 2018
f8c9a8c
auto-generating sphinx docs
pytorchbot May 3, 2018
48c5598
auto-generating sphinx docs
pytorchbot May 3, 2018
2aecca7
auto-generating sphinx docs
pytorchbot May 3, 2018
04b5f5f
auto-generating sphinx docs
pytorchbot May 3, 2018
9a62187
auto-generating sphinx docs
pytorchbot May 3, 2018
1e88866
OSX -> MacOS
soumith May 3, 2018
ef58e98
auto-generating sphinx docs
pytorchbot May 3, 2018
f9b090b
auto-generating sphinx docs
pytorchbot May 3, 2018
717c834
auto-generating sphinx docs
pytorchbot May 3, 2018
7a19a39
auto-generating sphinx docs
pytorchbot May 3, 2018
302f0e8
update gif on website
soumith May 3, 2018
39104f9
auto-generating sphinx docs
pytorchbot May 3, 2018
9bcf17c
auto-generating sphinx docs
pytorchbot May 3, 2018
fbe572e
auto-generating sphinx docs
pytorchbot May 3, 2018
7651c8d
auto-generating sphinx docs
pytorchbot May 3, 2018
9925b2b
auto-generating sphinx docs
pytorchbot May 3, 2018
1f8cc1a
add 0.3.1 to previous versions
soumith May 3, 2018
bd80dea
auto-generating sphinx docs
pytorchbot May 4, 2018
a3b4804
auto-generating sphinx docs
pytorchbot May 4, 2018
a7893a6
auto-generating sphinx docs
pytorchbot May 4, 2018
86ec266
auto-generating sphinx docs
pytorchbot May 4, 2018
2278b22
auto-generating sphinx docs
pytorchbot May 4, 2018
117dc9d
auto-generating sphinx docs
pytorchbot May 4, 2018
8dfd541
auto-generating sphinx docs
pytorchbot May 4, 2018
ab51c9d
auto-generating sphinx docs
pytorchbot May 4, 2018
69083b4
auto-generating sphinx docs
pytorchbot May 4, 2018
64b36a5
auto-generating sphinx docs
pytorchbot May 4, 2018
98d6b11
auto-generating sphinx docs
pytorchbot May 4, 2018
b33d915
auto-generating sphinx docs
pytorchbot May 4, 2018
1127adf
auto-generating sphinx docs
pytorchbot May 4, 2018
1b505c8
auto-generating sphinx docs
pytorchbot May 4, 2018
c9d9871
auto-generating sphinx docs
pytorchbot May 4, 2018
e02d437
auto-generating sphinx docs
pytorchbot May 4, 2018
3718e4a
auto-generating sphinx docs
pytorchbot May 4, 2018
2c9b0d5
auto-generating sphinx docs
pytorchbot May 4, 2018
3f5f493
auto-generating sphinx docs
pytorchbot May 4, 2018
ba5ec6a
auto-generating sphinx docs
pytorchbot May 4, 2018
2723b91
auto-generating sphinx docs
pytorchbot May 4, 2018
a8bb2d4
auto-generating sphinx docs
pytorchbot May 4, 2018
8f6bf9f
auto-generating sphinx docs
pytorchbot May 4, 2018
733bbc6
auto-generating sphinx docs
pytorchbot May 4, 2018
7881fbd
auto-generating sphinx docs
pytorchbot May 4, 2018
3bc4c4c
auto-generating sphinx docs
pytorchbot May 4, 2018
3116ece
auto-generating sphinx docs
pytorchbot May 4, 2018
87fdd55
auto-generating sphinx docs
pytorchbot May 4, 2018
dc93c69
auto-generating sphinx docs
pytorchbot May 4, 2018
fab49df
auto-generating sphinx docs
pytorchbot May 4, 2018
e12189b
auto-generating sphinx docs
pytorchbot May 4, 2018
3c92cc2
auto-generating sphinx docs
pytorchbot May 4, 2018
d709eda
auto-generating sphinx docs
pytorchbot May 4, 2018
ff74134
auto-generating sphinx docs
pytorchbot May 5, 2018
95196af
auto-generating sphinx docs
pytorchbot May 5, 2018
772f92c
auto-generating sphinx docs
pytorchbot May 5, 2018
307c0e3
auto-generating sphinx docs
pytorchbot May 5, 2018
6766f66
auto-generating sphinx docs
pytorchbot May 5, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 49 additions & 49 deletions _data/wizard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,41 +36,41 @@
matcher: 'conda,linux,cudanone,python3.6'
cmd: 'conda install pytorch-cpu torchvision-cpu -c pytorch'
-
matcher: 'conda,osx,cuda8,python2.7'
cmd: 'conda install pytorch torchvision -c pytorch <br /> # macOS Binaries dont support CUDA, install from source if CUDA is needed'
matcher: 'conda,macos,cuda8,python2.7'
cmd: 'conda install pytorch torchvision -c pytorch <br /> # MacOS Binaries dont support CUDA, install from source if CUDA is needed'
-
matcher: 'conda,osx,cuda9.0,python2.7'
cmd: 'conda install pytorch torchvision -c pytorch <br /> # macOS Binaries dont support CUDA, install from source if CUDA is needed'
matcher: 'conda,macos,cuda9.0,python2.7'
cmd: 'conda install pytorch torchvision -c pytorch <br /> # MacOS Binaries dont support CUDA, install from source if CUDA is needed'
-
matcher: 'conda,osx,cuda9.1,python2.7'
cmd: 'conda install pytorch torchvision -c pytorch <br /> # macOS Binaries dont support CUDA, install from source if CUDA is needed'
matcher: 'conda,macos,cuda9.1,python2.7'
cmd: 'conda install pytorch torchvision -c pytorch <br /> # MacOS Binaries dont support CUDA, install from source if CUDA is needed'
-
matcher: 'conda,osx,cudanone,python2.7'
cmd: 'conda install pytorch torchvision -c pytorch <br /> # macOS Binaries dont support CUDA, install from source if CUDA is needed'
matcher: 'conda,macos,cudanone,python2.7'
cmd: 'conda install pytorch torchvision -c pytorch'
-
matcher: 'conda,osx,cuda8,python3.5'
cmd: 'conda install pytorch torchvision -c pytorch <br /> # macOS Binaries dont support CUDA, install from source if CUDA is needed'
matcher: 'conda,macos,cuda8,python3.5'
cmd: 'conda install pytorch torchvision -c pytorch <br /> # MacOS Binaries dont support CUDA, install from source if CUDA is needed'
-
matcher: 'conda,osx,cuda9.0,python3.5'
cmd: 'conda install pytorch torchvision -c pytorch <br /> # macOS Binaries dont support CUDA, install from source if CUDA is needed'
matcher: 'conda,macos,cuda9.0,python3.5'
cmd: 'conda install pytorch torchvision -c pytorch <br /> # MacOS Binaries dont support CUDA, install from source if CUDA is needed'
-
matcher: 'conda,osx,cuda9.1,python3.5'
cmd: 'conda install pytorch torchvision -c pytorch <br /> # macOS Binaries dont support CUDA, install from source if CUDA is needed'
matcher: 'conda,macos,cuda9.1,python3.5'
cmd: 'conda install pytorch torchvision -c pytorch <br /> # MacOS Binaries dont support CUDA, install from source if CUDA is needed'
-
matcher: 'conda,osx,cudanone,python3.5'
cmd: 'conda install pytorch torchvision -c pytorch <br /> # macOS Binaries dont support CUDA, install from source if CUDA is needed'
matcher: 'conda,macos,cudanone,python3.5'
cmd: 'conda install pytorch torchvision -c pytorch'
-
matcher: 'conda,osx,cuda8,python3.6'
cmd: 'conda install pytorch torchvision -c pytorch <br /> # macOS Binaries dont support CUDA, install from source if CUDA is needed'
matcher: 'conda,macos,cuda8,python3.6'
cmd: 'conda install pytorch torchvision -c pytorch <br /> # MacOS Binaries dont support CUDA, install from source if CUDA is needed'
-
matcher: 'conda,osx,cuda9.0,python3.6'
cmd: 'conda install pytorch torchvision -c pytorch <br /> # macOS Binaries dont support CUDA, install from source if CUDA is needed'
matcher: 'conda,macos,cuda9.0,python3.6'
cmd: 'conda install pytorch torchvision -c pytorch <br /> # MacOS Binaries dont support CUDA, install from source if CUDA is needed'
-
matcher: 'conda,osx,cuda9.1,python3.6'
cmd: 'conda install pytorch torchvision -c pytorch <br /> # macOS Binaries dont support CUDA, install from source if CUDA is needed'
matcher: 'conda,macos,cuda9.1,python3.6'
cmd: 'conda install pytorch torchvision -c pytorch <br /> # MacOS Binaries dont support CUDA, install from source if CUDA is needed'
-
matcher: 'conda,osx,cudanone,python3.6'
cmd: 'conda install pytorch torchvision -c pytorch <br /> # macOS Binaries dont support CUDA, install from source if CUDA is needed'
matcher: 'conda,macos,cudanone,python3.6'
cmd: 'conda install pytorch torchvision -c pytorch'
-
matcher: 'conda,windows,cuda8,python2.7'
cmd: '# PyTorch does not support Python 2.7 on Windows. Please install with Python 3.'
Expand Down Expand Up @@ -109,43 +109,43 @@
cmd: 'conda install pytorch-cpu -c pytorch <br /> pip3 install torchvision'

############ pip section #########################
######### macOS ######################
######### macos ######################
-
matcher: 'pip,osx,cuda8,python2.7'
cmd: 'pip install torch torchvision <br /> # macOS Binaries dont support CUDA, install from source if CUDA is needed'
matcher: 'pip,macos,cuda8,python2.7'
cmd: 'pip install torch torchvision <br /> # MacOS Binaries dont support CUDA, install from source if CUDA is needed'
-
matcher: 'pip,osx,cuda9.0,python2.7'
cmd: 'pip install torch torchvision <br /> # macOS Binaries dont support CUDA, install from source if CUDA is needed'
matcher: 'pip,macos,cuda9.0,python2.7'
cmd: 'pip install torch torchvision <br /> # MacOS Binaries dont support CUDA, install from source if CUDA is needed'
-
matcher: 'pip,osx,cuda9.1,python2.7'
cmd: 'pip install torch torchvision <br /> # macOS Binaries dont support CUDA, install from source if CUDA is needed'
matcher: 'pip,macos,cuda9.1,python2.7'
cmd: 'pip install torch torchvision <br /> # MacOS Binaries dont support CUDA, install from source if CUDA is needed'
-
matcher: 'pip,osx,cudanone,python2.7'
cmd: 'pip install torch torchvision <br /> # macOS Binaries dont support CUDA, install from source if CUDA is needed'
matcher: 'pip,macos,cudanone,python2.7'
cmd: 'pip install torch torchvision'
-
matcher: 'pip,osx,cuda8,python3.5'
cmd: 'pip3 install torch torchvision <br /> # macOS Binaries dont support CUDA, install from source if CUDA is needed'
matcher: 'pip,macos,cuda8,python3.5'
cmd: 'pip3 install torch torchvision <br /> # MacOS Binaries dont support CUDA, install from source if CUDA is needed'
-
matcher: 'pip,osx,cuda9.0,python3.5'
cmd: 'pip3 install torch torchvision <br /> # macOS Binaries dont support CUDA, install from source if CUDA is needed'
matcher: 'pip,macos,cuda9.0,python3.5'
cmd: 'pip3 install torch torchvision <br /> # MacOS Binaries dont support CUDA, install from source if CUDA is needed'
-
matcher: 'pip,osx,cuda9.1,python3.5'
cmd: 'pip3 install torch torchvision <br /> # macOS Binaries dont support CUDA, install from source if CUDA is needed'
matcher: 'pip,macos,cuda9.1,python3.5'
cmd: 'pip3 install torch torchvision <br /> # MacOS Binaries dont support CUDA, install from source if CUDA is needed'
-
matcher: 'pip,osx,cudanone,python3.5'
cmd: 'pip3 install torch torchvision <br /> # macOS Binaries dont support CUDA, install from source if CUDA is needed'
matcher: 'pip,macos,cudanone,python3.5'
cmd: 'pip3 install torch torchvision'
-
matcher: 'pip,osx,cuda8,python3.6'
cmd: 'pip3 install torch torchvision <br /> # macOS Binaries dont support CUDA, install from source if CUDA is needed'
matcher: 'pip,macos,cuda8,python3.6'
cmd: 'pip3 install torch torchvision <br /> # MacOS Binaries dont support CUDA, install from source if CUDA is needed'
-
matcher: 'pip,osx,cuda9.0,python3.6'
cmd: 'pip3 install torch torchvision <br /> # macOS Binaries dont support CUDA, install from source if CUDA is needed'
matcher: 'pip,macos,cuda9.0,python3.6'
cmd: 'pip3 install torch torchvision <br /> # MacOS Binaries dont support CUDA, install from source if CUDA is needed'
-
matcher: 'pip,osx,cuda9.1,python3.6'
cmd: 'pip3 install torch torchvision <br /> # macOS Binaries dont support CUDA, install from source if CUDA is needed'
matcher: 'pip,macos,cuda9.1,python3.6'
cmd: 'pip3 install torch torchvision <br /> # MacOS Binaries dont support CUDA, install from source if CUDA is needed'
-
matcher: 'pip,osx,cudanone,python3.6'
cmd: 'pip3 install torch torchvision <br /> # macOS Binaries dont support CUDA, install from source if CUDA is needed'
matcher: 'pip,macos,cudanone,python3.6'
cmd: 'pip3 install torch torchvision'
######### Linux ######################
-
matcher: 'pip,linux,cudanone,python2.7'
Expand Down
35 changes: 35 additions & 0 deletions _posts/2018-04-22-0_4_0-migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,41 @@ True

However, ``.data`` can be unsafe in some cases. Any changes on ``x.data`` wouldn't be tracked by ``autograd``, and the computed gradients would be incorrect if ``x`` is needed in a backward pass. A safer alternative is to use [``x.detach()``](http://pytorch.org/docs/master/autograd.html#torch.Tensor.detach), which also returns a ``Tensor`` that shares data with ``requires_grad=False``, but will have its in-place changes reported by ``autograd`` if ``x`` is needed in backward.

Here is an example of the difference between ``.data`` and ``x.detach()`` (and why we recommend using ``detach`` in general).

If you use ``Tensor.detach()``, the gradient computation is guaranteed to be correct.

```
>>> a = torch.tensor([1,2,3.], requires_grad = True)
>>> out = a.sigmoid()
>>> c = out.detach()
>>> c.zero_()
tensor([ 0., 0., 0.])

>>> out # modified by c.zero_() !!
tensor([ 0., 0., 0.])

>>> out.sum().backward() # Requires the original value of out, but that was overwritten by c.zero_()
RuntimeError: one of the variables needed for gradient computation has been modified by an
```

However, using ``Tensor.data`` can be unsafe and can easly result in incorrect gradients
when a tensor is required for gradient computation but modified in-place.

```
>>> a = torch.tensor([1,2,3.], requires_grad = True)
>>> out = a.sigmoid()
>>> c = out.data
>>> c.zero_()
tensor([ 0., 0., 0.])

>>> out # out was modified by c.zero_()
tensor([ 0., 0., 0.])

>>> out.sum().backward()
>>> a.grad # The result is very, very wrong because `out` changed!
tensor([ 0., 0., 0.])
```

## Support for 0-dimensional (scalar) Tensors

Expand Down
Loading