Nvidia faced a growing threat early last year: The artificial-intelligence world was shifting in a way that invited ...