The Internet of Things as a Deep Neural Network