Open leventov opened 3 years ago
Maybe the short-term work-around is to define f(c) = Zygote.forwarddiff(c -> itp[c], c)
.
@mcabbott thanks. As an anecdote, I arrived at this workaround myself, but it took me significant time lurking around the documentation and trying to connect the dots. I think it would be useful to add a section to documentation "what if Zygote fails to differentiate your code".
I haven't looked in ages but yes, sure. Maybe the "Debugging" section should start with ways to get things running at all, not with profiling?
Possibly related to https://github.com/FluxML/Zygote.jl/issues/643.