Update README.md (#20088)

Summary:
Sometimes people need to checkout an older version and build PyTorch. In that case, they need to do `git submodule sync` and maybe `git submodule update --init` as mentioned [here](https://github.com/pytorch/pytorch/issues/20074).
Pull Request resolved: https://github.com/pytorch/pytorch/pull/20088

Differential Revision: D15195729

Pulled By: soumith

fbshipit-source-id: 73232b801e5524cdba462dd504fb973d95d0498c
This commit is contained in:
Amir Arsalan Soltani
2019-05-02 20:29:50 -07:00
committed by Facebook Github Bot
parent fb8792e2b6
commit 792bc56ec2

View File

@ -182,6 +182,9 @@ conda install -c pytorch magma-cuda90 # or [magma-cuda80 | magma-cuda92 | magma-
```bash
git clone --recursive https://github.com/pytorch/pytorch
cd pytorch
# if you are updating an existing checkout
git submodule sync
git submodule update --init --recursive
```
#### Install PyTorch