EPAM: A Predictive Energy Model for Mobile AI