You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a future PR, we could add AbstractConfig constructors like GradientConfig(x, Chunk{N}, NaNSafe{true}). The generated dual numbers would then contain partials of type Partials{N,T,true}, which would dispatch to the NaN-safe versions of methods. Downstream modules could then support passing that option through their APIs (or simply setting it to a reasonable default for themselves internally).
Is it possible we could use Preferences.jl to enable/disable NaN-safe mode now? See JuliaLang/Pkg.jl#458. I think that would effectively solve this long-standing issue.
Activity
cossio commentedon Oct 15, 2018
This would be very nice to have!
taylormcd commentedon Mar 16, 2021
Is it possible we could use Preferences.jl to enable/disable NaN-safe mode now? See JuliaLang/Pkg.jl#458. I think that would effectively solve this long-standing issue.
devmotion commentedon May 16, 2022
NaN-safe mode switching via the Preferences.jl system was added in #539.