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
central_fdm will cause problem when one wants the input always being positive semidefinite, e.g the real value logdet function. It cause the gradcheck of logdet in Zygote fails occasionally, any idea how to preserve this property while doing FDM?
Update: I workaround it by doing
gradcheck(x->logdet(x * x'), rand(4, 4))
The text was updated successfully, but these errors were encountered:
Ah, yes, this is generally problematic. I always do something similar to what you've done (I'll usually add the identity to x * x' to ensure it's reasonably well conditioned though), but it's not a particularly satisfying solution.
central_fdm
will cause problem when one wants the input always being positive semidefinite, e.g the real valuelogdet
function. It cause the gradcheck oflogdet
in Zygote fails occasionally, any idea how to preserve this property while doing FDM?Update: I workaround it by doing
The text was updated successfully, but these errors were encountered: