End-to-end hardware accelerator for deep convolutional neural network