# Install Build Tools
$ pip install scons
# Reload Environment
$ source ~/.profile
# Clone Compute Library
$ git clone https://github.com/Arm-software/ComputeLibrary.git
# or wget https://www.mobibrw.com/wp-content/uploads/2019/10/ComputeLibrary.zip
# Enter ComputeLibrary folder
$ cd ComputeLibrary
# Build the library and the examples
$ scons Werror=1 debug=0 asserts=0 neon=1 opencl=1 examples=1 os=linux arch=armv7a -j4
# Run on the Raspberry Pi
$ export LD_LIBRARY_PATH=build/
# Download AlexNet
# Install unzip
$ sudo apt-get install unzip
# Download the zip file with the AlexNet model, input images and labels
$ wget https://armkeil.blob.core.windows.net/developer/developer/technologies/Machine%20learning%20on%20Arm/Tutorials/Running%20AlexNet%20on%20Pi%20with%20Compute%20Library/compute_library_alexnet.zip
# or wget https://www.mobibrw.com/wp-content/uploads/2019/10/compute_library_alexnet.zip
# Create a new folder
$ mkdir assets_alexnet
# Unzip
$ unzip compute_library_alexnet.zip -d assets_alexnet
$ PATH_ASSETS=./assets_alexnet
$ ./build/examples/graph_alexnet 0 $PATH_ASSETS $PATH_ASSETS/go_kart.ppm $PATH_ASSETS/labels.txt
继续阅读树莓派4B使用ARM Compute Library运行AlexNet