Bayesian inference for deep learning