When to Upgrade Your Hardware for Artificial Intelligence