ThomasDelteil commented on issue #9018: Seg Fault on MNIST example - C++
URL: 
https://github.com/apache/incubator-mxnet/issues/9018#issuecomment-409022487
 
 
   @Austin-Bolesta the CPP examples were in bad shape and have all been fixed 
and are now continuously tested.
   
   ```
   ~/incubator-mxnet$ make -j $(nproc) USE_OPENCV=1 USE_BLAS=openblas 
USE_CPP_PACKAGE=1
   ~/incubator-mxnet$ cd cpp-package/example
   ~/incubator-mxnet/cpp-package/example$ make all
   ~/incubator-mxnet/cpp-package/example$ cp ../../lib/libmxnet.so .
   
   ~/incubator-mxnet/cpp-package/example$ ./mlp_cpu
   [21:45:19] src/io/iter_mnist.cc:110: MNISTIter: load 60000 images, 
shuffle=1, shape=(100,784)
   [21:45:19] src/io/iter_mnist.cc:110: MNISTIter: load 10000 images, 
shuffle=1, shape=(100,784)
   [21:45:20] mlp_cpu.cpp:134: Epoch: 0 121704 samples/sec Accuracy: 0.1135
   [21:45:21] mlp_cpu.cpp:134: Epoch: 1 125000 samples/sec Accuracy: 0.536
   [21:45:21] mlp_cpu.cpp:134: Epoch: 2 133929 samples/sec Accuracy: 0.8278
   [21:45:22] mlp_cpu.cpp:134: Epoch: 3 134228 samples/sec Accuracy: 0.8726
   [21:45:22] mlp_cpu.cpp:134: Epoch: 4 131579 samples/sec Accuracy: 0.9041
   [21:45:23] mlp_cpu.cpp:134: Epoch: 5 131291 samples/sec Accuracy: 0.9163
   [21:45:23] mlp_cpu.cpp:134: Epoch: 6 131291 samples/sec Accuracy: 0.9226
   [21:45:24] mlp_cpu.cpp:134: Epoch: 7 131004 samples/sec Accuracy: 0.9291
   [21:45:24] mlp_cpu.cpp:134: Epoch: 8 131004 samples/sec Accuracy: 0.9334
   [21:45:25] mlp_cpu.cpp:134: Epoch: 9 131579 samples/sec Accuracy: 0.937
   ```
   
   @marcoabreu can you please close?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to