Optimizing power efficiency to bring AI to the end device