The cost of building out the infrastructure needed to satisfy booming demand for artificial intelligence is changing the way major companies allocate resources. That can mean an end to some jobs ...