An API for a convolutional neural network implemented in C++