DiffEqML / torchdyn

A PyTorch library entirely dedicated to neural differential equations, implicit models and related numerical methods
https://torchdyn.org
Apache License 2.0
1.4k stars 130 forks source link

Bugs in the neuralde.py for NeuralODE class #171

Closed Charlie-Xiaoqi closed 2 years ago

Charlie-Xiaoqi commented 2 years ago

When looking at the source code under /torchdyn/core/neuralde.py, I found that the NeuralODE class is missing defunc property. And this bug results in an error for /tutorials/module4-model/m4e_lagrangian_nets.ipynb. The notebook can not be run successfully because it requires NeuralODE class to have the defunc property.