Deep neural networks on diffeomorphism groups for optimal shape reparametrization