Parsimonious Bayesian deep networks