Neural Networks For Inference, Inference For Neural Networks