Nonseparable Symplectic Neural Networks