See https://lux.csail.mit.edu/dev/tutorials/intermediate/1_NeuralODE#type-stability for the issue with the current implementation style.