Neural-prior stochastic block model