Top tech companies are racing to build AI into their products and services. Startups catering to the surge in demand for AI chips and machine learning have been a bright spot in the private funding market.