Skip to content

Commit 5d65db1

Browse files
authored
Merge pull request #56 from milancurcic/update-readme-re-mnist-data
Remove instructions about downloading MNIST data
2 parents 60b5357 + ac0bc29 commit 5d65db1

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed

README.md

+6-20
Original file line numberDiff line numberDiff line change
@@ -155,16 +155,7 @@ cmake .. -DCMAKE_BUILD_TYPE=debug
155155

156156
#### Running tests with CMake
157157

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:
168159

169160
```
170161
ctest
@@ -284,15 +275,7 @@ broadcast. It can be any positive number not greater than `num_images()`.
284275

285276
### MNIST training example
286277

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:
296279

297280
```fortran
298281
program example_mnist
@@ -352,7 +335,10 @@ program example_mnist
352335
end program example_mnist
353336
```
354337

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:
356342

357343
```
358344
$ ./example_mnist

0 commit comments

Comments
 (0)