A Deep Learning Method for Comparing Bayesian Hierarchical Models