Relaxation by the Hopfield neural network