The Gauss-Newton matrix for Deep Learning models and its applications