3 ms·
yes, see: https://juliadiff.org/ChainRulesCore.jl/dev/maths/nondiff_points.html https://juliadiff.org/ChainRulesCore.jl/dev/maths/nondiff_po... and related nea
by fault1 5y ago
yes, see:
https://juliadiff.org/ChainRulesCore.jl/dev/maths/nondiff_points.html https://juliadiff.org/ChainRulesCore.jl/dev/maths/nondiff_po...
and related neat usages in set based optimization methods in MathOptInterface (part of JuMP.jl):
https://matbesancon.xyz/post/2020-12-24-chains_sets2/ https://matbesancon.xyz/post/2020-12-24-chains_sets2/
- ogogmad 5y agoTo me, it looks like you're computing a single element from the set, instead of the whole set. Which makes sense, but it's an important caveat.