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
Hmm this seems like a separate issue from checking the numerical correctness of the gradients. Rather, this would require some functionality to say whether a particular "differential" is valid for a particular primal.
I don't think we'll be able to do this with 100% accuracy, but we should be able to catch it in a lot of cases. So you could imagine this taking the form of a passing default implementation, with methods implemented to catch specific cases that we know / care about - e.g. to check for the casting behaviour that @CarloLucibello pointed out / not representing the differential of a Float64 with a ComplexF64 or whatever.
See JuliaDiff/ChainRules.jl#233 and reference therein for possible issues when unexpected casts happen
The text was updated successfully, but these errors were encountered: