Text this: Nearest-neighbors neural network architecture for efficient sampling of statistical physics models