Introducing the Graph API
In release 17.09 of the Arm Compute Library, we introduced the Graph API which is an important feature to make life easier for developers, and anyone else benchmarking the library.
The Graph API’s primary function is to reduce the boilerplate code, but it can also reduce errors in your code and improve its readability. It is simple and easy-to-use, with a stream interface that is designed to be similar to other C++ objects.
At the current stage, the Graph API only supports the ML functions, such as convolution, fully connected, activation, pooling, and so on. To use the Graph API, you must compile the library with both NEON and OpenCL enabled by setting
As Raspberry Pi does not have OpenCL, the Graph API will automatically fall back to using NEON. This is why you need to compile the Arm Compute Library with both NEON and OpenCL enabled.