Google and Facebook are building custom chips for AI. Microsoft is using Intel chips that can be reprogrammed for different uses.