Minimizing Energy Consumption of Deep Learning Models by Energy-Aware Training