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.33k stars 124 forks source link

Bugs in the neuralde.py for NeuralODE class #171

Closed Charlie-Xiaoqi closed 1 year ago

Charlie-Xiaoqi commented 1 year 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.