You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to make contributing to this project as easy and transparent as
3
4
possible.
4
5
5
6
## Pull Requests
7
+
6
8
We actively welcome your pull requests.
7
9
8
10
If you're new we encourage you to take a look at issues tagged with [good first issue](https://github.com/pytorch/examples/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22)
9
11
10
12
### For new examples
11
-
0. Create a github issue proposing a new example and make sure it's substantially different from an existing one
13
+
14
+
0. Create a GitHub issue proposing a new example and make sure it's substantially different from an existing one.
12
15
1. Fork the repo and create your branch from `main`.
13
-
2. If you've added code that should be tested, add tests to `run_python_examples.sh`
16
+
2. If you've added code that should be tested, add tests to `run_python_examples.sh`.
14
17
3. Create a `README.md`.
15
18
4. Add a card with a brief description of your example and link to the repo to
16
-
the `docs/source/index.rst` file and build the docs by running:
19
+
the `docs/source/index.rst` file and build the docs by running:
17
20
18
21
```
19
22
cd docs
@@ -22,34 +25,39 @@ If you're new we encourage you to take a look at issues tagged with [good first
22
25
pip install -r requirements.txt
23
26
make html
24
27
```
28
+
25
29
When done working with `virtualenv`, run `deactivate`.
26
30
27
-
5. Verify that there are no issues in your doc build. You can check preview locally
31
+
5. Verify that there are no issues in your doc build. You can check the preview locally
28
32
by installing [sphinx-serve](https://pypi.org/project/sphinx-serve/) and
29
33
then running `sphinx-serve -b build`.
30
-
31
-
5. Ensure your test passes locally.
32
-
6. If you haven't already, complete the Contributor License Agreement ("CLA").
33
-
7. Address any feedback in code review promptly.
34
+
6. Ensure your test passes locally.
35
+
7. If you haven't already, complete the Contributor License Agreement ("CLA").
36
+
8. Address any feedback in code review promptly.
34
37
35
38
## For bug fixes
39
+
36
40
1. Fork the repo and create your branch from `main`.
37
-
2. Make sure you have a GPU-enabled machine, either locally or in the cloud. `g4dn.4xlarge` is a good starting point on AWS.
38
-
3. Make your code change.
41
+
2. Make sure you have a GPU-enabled machine, either locally or in the cloud. `g4dn.4xlarge` is a good starting point on AWS.
42
+
3. Make your code change.
39
43
4. First, install all dependencies with `./run_python_examples.sh "install_deps"`.
40
-
5. Then make sure that `./run_python_examples.sh` passes locally by running script end to end.
44
+
5. Then make sure that `./run_python_examples.sh` passes locally by running the script end to end.
41
45
6. If you haven't already, complete the Contributor License Agreement ("CLA").
42
46
7. Address any feedback in code review promptly.
43
47
44
-
45
48
## Contributor License Agreement ("CLA")
46
-
In order to accept your pull request, we need you to submit a CLA. You only need
49
+
50
+
To accept your pull request, we need you to submit a CLA. You only need
47
51
to do this once to work on any of Facebook's open source projects.
48
52
49
53
Complete your CLA here: <https://code.facebook.com/cla>
54
+
50
55
## Issues
56
+
51
57
We use GitHub issues to track public bugs. Please ensure your description is
52
58
clear and has sufficient instructions to be able to reproduce the issue.
59
+
53
60
## License
61
+
54
62
By contributing to examples, you agree that your contributions will be licensed
55
63
under the LICENSE file in the root directory of this source tree.
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,13 @@
4
4
5
5
https://pytorch.org/examples/
6
6
7
-
`pytorch/examples` is a repository showcasing examples of using [PyTorch](https://github.com/pytorch/pytorch). The goal is to have curated, short, few/no dependencies *high quality* examples that are substantially different from each other that can be emulated in your existing work.
7
+
`pytorch/examples` is a repository showcasing examples of using [PyTorch](https://github.com/pytorch/pytorch). The goal is to have curated, short, few/no dependencies _high quality_ examples that are substantially different from each other that can be emulated in your existing work.
8
8
9
-
* For tutorials: https://github.com/pytorch/tutorials
10
-
* For changes to pytorch.org: https://github.com/pytorch/pytorch.github.io
11
-
* For a general model hub: https://pytorch.org/hub/ or https://huggingface.co/models
12
-
* For recipes on how to run PyTorch in production: https://github.com/facebookresearch/recipes
13
-
* For general Q&A and support: https://discuss.pytorch.org/
9
+
- For tutorials: https://github.com/pytorch/tutorials
10
+
- For changes to pytorch.org: https://github.com/pytorch/pytorch.github.io
11
+
- For a general model hub: https://pytorch.org/hub/ or https://huggingface.co/models
12
+
- For recipes on how to run PyTorch in production: https://github.com/facebookresearch/recipes
13
+
- For general Q&A and support: https://discuss.pytorch.org/
Copy file name to clipboardExpand all lines: cpp/custom-dataset/README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,9 +20,10 @@ $ make
20
20
21
21
where /path/to/libtorch should be the path to the unzipped LibTorch distribution, which you can get from the [PyTorch homepage](https://pytorch.org/get-started/locally/).
22
22
23
-
if you see an error like ```undefined reference to cv::imread(std::string const&, int)``` when running the ```make``` command, you should build LibTorch from source using the instructions [here](https://github.com/pytorch/pytorch#from-source), and then set ```CMAKE_PREFIX_PATH``` to that PyTorch source directory.
23
+
if you see an error like `undefined reference to cv::imread(std::string const&, int)` when running the `make` command, you should build LibTorch from source using the instructions [here](https://github.com/pytorch/pytorch#from-source), and then set `CMAKE_PREFIX_PATH` to that PyTorch source directory.
24
24
25
25
The build directory should look like this:
26
+
26
27
```
27
28
.
28
29
├── custom-dataset
@@ -38,9 +39,10 @@ The build directory should look like this:
38
39
└── ...
39
40
```
40
41
41
-
```info.txt``` file gets copied from source directory during build.
42
+
`info.txt` file gets copied from source directory during build.
0 commit comments