A Learning Framework for Bandwidth-Efficient Distributed Inference in Wireless IoT