Overview Before you begin Run Ubuntu Linux on the HiKey 960 Build an Ubuntu filesystem Flash the base firmware and OS Flash the base firmware and OS - recovery mode Flash the base firmware and OS - fastboot mode Boot Linux Add more diskspace MNIST Draw MNIST Draw - Setup MNIST Draw - Machine Learning model MNIST Draw - MNIST demo application Streamline Streamline - Run the MNIST inference Streamline - Use Streamline to connect and profile the application Streamline - Automate the launch and capture Next steps
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