TuringLang / Bijectors.jl

Implementation of normalising flows and constrained random variable transformations
https://turinglang.org/Bijectors.jl/
MIT License
199 stars 32 forks source link

Remove heavy usage of `@generated` #233

Open torfjelde opened 1 year ago

torfjelde commented 1 year ago

We're potentially over-using @generated quite a bit, which sometimes leads to blow-up in compilation times, etc.

Might be worth reducing this, e.g. using more recursion, and leaving it the decision of whether or not something should be compiled away to the compiler.