Adaptive Deep Neural Network Inference Optimization with EENet