Distributed Learning and Inference Systems: A Networking Perspective