Apple scrambles to find footing in artificial intelligence race