Conservative set valued fields, automatic differentiation, stochastic gradient method and deep learning