File tree Expand file tree Collapse file tree 1 file changed +6
-20
lines changed Expand file tree Collapse file tree 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
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``` 
170161ctest 
@@ -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 
298281program example_mnist 
@@ -352,7 +335,10 @@ program example_mnist
352335end 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 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments