Automated compilation of deep learning neural networks for image processing