Mirror descent of Hopfield model