Commit c1903fc
authored
Update C++ frontend tutorial with template, working MNIST download link, and newer C++ / CMake versions (#3570)
[T237454564](https://www.internalfb.com/intern/tasks/?t=237454564)
## Description
Updated the tutorial:
* Added template header with clear prerequisites
* Updated C++ version to 17
* Updated CMake to >= 3.5 from
https://github.com/pytorch/examples/blob/main/cpp/dcgan/CMakeLists.txt
* Fixed the link in the referenced `download_mnist.py` script to use the
mirror at https://github.com/fgnt/mnist
## Checklist
<!--- Make sure to add `x` to all items in the following checklist: -->
- [x] The issue that is being fixed is referred in the description (see
above "Fixes #ISSUE_NUMBER")
- [x] Only one issue is addressed in this pull request
- [x] Labels from the issue that this PR is fixing are added to this
pull request
- [x] No unnecessary issues are included into this pull request.1 parent 0d0432e commit c1903fc
1 file changed
+24
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
4 | 24 | | |
5 | 25 | | |
6 | 26 | | |
7 | 27 | | |
8 | | - | |
| 28 | + | |
9 | 29 | | |
10 | 30 | | |
11 | 31 | | |
| |||
137 | 157 | | |
138 | 158 | | |
139 | 159 | | |
140 | | - | |
| 160 | + | |
141 | 161 | | |
142 | 162 | | |
143 | 163 | | |
144 | 164 | | |
145 | 165 | | |
146 | 166 | | |
147 | | - | |
| 167 | + | |
148 | 168 | | |
149 | 169 | | |
150 | 170 | | |
| |||
859 | 879 | | |
860 | 880 | | |
861 | 881 | | |
862 | | - | |
| 882 | + | |
863 | 883 | | |
864 | 884 | | |
865 | 885 | | |
| |||
0 commit comments