Early Classification for Dynamic Inference of Neural Networks