Snapdragon Neural Processing Engine SDK
Reference Guide
Caffe & Caffe2 Setup

Get Caffe

A Caffe installation is required if the SNPE SDK is going to be used with Caffe.

  • To clone and build Caffe from open source (https://github.com/BVLC/caffe) use git commit SHA d8f79537977f9dbcc2b7054a9e95be00eb6f26d0 as this SHA has been tested with the SNPE SDK. Other SHAs may also work but have not been tested.
    cd <path_to_caffe>
    git reset --hard d8f79537977f9dbcc2b7054a9e95be00eb6f26d0
  • Instructions to build Caffe on ubuntu 14.04 are available here: http://caffe.berkeleyvision.org/install_apt.html
  • A list of commands needed as part of compiling and installing Caffe are available here: http://caffe.berkeleyvision.org/installation.html#compilation. A summary of the necessary steps is provided below.
    cp Makefile.config.example Makefile.config
    make all
    make test
    make runtest
    make distribute
    make pycaffe <---- This is an important step because
                       snpe-caffe-to-dlc conversion script
                       relies on Caffe python bindings
  • Now continue with the rest of the SNPE Setup

Get Caffe2

Caffe2 is a rapidly evolving project. You may install Caffe2 from prebuilt binaries for Ubuntu or build from sources.

This link (Caffe2) provides the most up to date instructions for setting up Caffe2.