@@ -37,7 +37,7 @@ git clone https://github.com/pytorch/pytorch
37
37
cd pytorch
38
38
```
39
39
40
- 3 . Install PyTorch in ` build develop` mode:
40
+ 3 . Install PyTorch in ` develop ` mode:
41
41
42
42
A full set of instructions on installing PyTorch from source is here:
43
43
https://github.com/pytorch/pytorch#from-source
@@ -51,7 +51,7 @@ python setup.py install
51
51
with
52
52
53
53
``` bash
54
- python setup.py build develop
54
+ python setup.py develop
55
55
```
56
56
57
57
This is especially useful if you are only changing Python files.
@@ -62,7 +62,7 @@ Python install.
62
62
Hence, if you modify a Python file, you do not need to reinstall PyTorch again and again.
63
63
64
64
For example:
65
- - Install local PyTorch in ` build develop` mode
65
+ - Install local PyTorch in ` develop ` mode
66
66
- modify your Python file ` torch/__init__.py ` (for example)
67
67
- test functionality
68
68
- modify your Python file ` torch/__init__.py `
@@ -73,7 +73,7 @@ For example:
73
73
You do not need to repeatedly install after modifying Python files.
74
74
75
75
In case you want to reinstall, make sure that you uninstall PyTorch first by running ` pip uninstall torch `
76
- and ` python setup.py clean ` . Then you can install in ` build develop` mode again.
76
+ and ` python setup.py clean ` . Then you can install in ` develop ` mode again.
77
77
78
78
## Codebase structure
79
79
@@ -212,7 +212,7 @@ specific build of PyTorch. To set one up:
212
212
conda create -n pytorch-myfeature
213
213
source activate pytorch-myfeature
214
214
# if you run python now, torch will NOT be installed
215
- python setup.py build develop
215
+ python setup.py develop
216
216
```
217
217
218
218
## C++ Development tips
@@ -254,7 +254,7 @@ variables `DEBUG` and `NO_CUDA`.
254
254
255
255
For example:
256
256
``` bash
257
- NO_CUDA=1 DEBUG=1 python setup.py build develop
257
+ NO_CUDA=1 DEBUG=1 python setup.py develop
258
258
```
259
259
260
260
Make sure you continue to pass these flags on subsequent builds.
0 commit comments