Streamline

Run the MNIST inference

To run the application use the command line to specify the hardware to use (CPU or GPU), and the number of images to process:

# Optimisation modes: 0 for CpuRef, 1 for CpuAcc, 2 for GpuAcc
# Input size: 1 to 2000 (number of images to predict)
$ ./mnist_tf_convol 1 10

Try diffent program configurations and compare the execution times

$ time ./mnist_tf_convol 0 10 # 10 images on unoptimised CPU device
$ time ./mnist_tf_convol 1 100 # 100 images on optimised CPU device
$ time ./mnist_tf_convol 2 1000 # 1000 images on GPU device
Previous Next