Fast and Accurate Inference with Adaptive Ensemble Prediction in Image Classification with Deep Neural Networks