Generalized Quadratic Embeddings for Nonlinear Dynamics using Deep Learning