John Giannandrea, Apple's AI chief, is leaving the company. Amar Subramanya is joining as vice president of AI.