Memristors go mainstream: brain-inspired hardware could cut AI’s energy costs