LuxDL / Lux.jl

Elegant & Performant Scientific Machine Learning in Julia
https://lux.csail.mit.edu/
MIT License
446 stars 50 forks source link

Add type-stability checks via `DispatchDoctor.jl` #683

Open avik-pal opened 1 month ago

avik-pal commented 1 month ago
  1. We can't apply it to the entire Lux module. Some of the code exists for debugging and is intentionally type unstable.
  2. I like the default of erroring, but that will be too breaking. Maybe we can consider that for v0.6. We will warn if the code is type unstable for now.

Repository: https://github.com/MilesCranmer/DispatchDoctor.jl

avik-pal commented 4 days ago

We can do it at multiple levels: