File tree 1 file changed +6
-20
lines changed
1 file changed +6
-20
lines changed Original file line number Diff line number Diff line change @@ -155,16 +155,7 @@ cmake .. -DCMAKE_BUILD_TYPE=debug
155
155
156
156
#### Running tests with CMake
157
157
158
- Before running the tests, link the the data/ directory to the current directory:
159
-
160
- ```
161
- ln -s ../data
162
- ```
163
-
164
- The MNIST dataset which comes with the code as a tarball must be unpacked first.
165
- See [ MNIST training example] ( #mnist-training-example ) on how to do that.
166
- Once the MNIST dataset is unpacked and the data/ directory is linked in your
167
- CMake build/ directory, run
158
+ Type:
168
159
169
160
```
170
161
ctest
@@ -284,15 +275,7 @@ broadcast. It can be any positive number not greater than `num_images()`.
284
275
285
276
### MNIST training example
286
277
287
- The MNIST data is included with the repo and you will have to unpack it first:
288
-
289
- ```
290
- cd data/mnist
291
- tar xzvf mnist.tar.gz
292
- cd -
293
- ```
294
-
295
- The complete program:
278
+ Here's the complete program:
296
279
297
280
``` fortran
298
281
program example_mnist
@@ -352,7 +335,10 @@ program example_mnist
352
335
end program example_mnist
353
336
```
354
337
355
- The program will report the accuracy after each epoch:
338
+ The MNIST data will be automatically downloaded at the first attempt at loading it
339
+ with the ` load_mnist ` subroutine.
340
+
341
+ Running the program will report the accuracy after each epoch:
356
342
357
343
```
358
344
$ ./example_mnist
You can’t perform that action at this time.
0 commit comments