Analysis of the geometric structure of neural networks and neural ODEs via morse functions | Synapse