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
The following snippet appears to fail due to a missing frule for exp(::Matrix) (there's one for exp!(::Matrix) only)
using ForwardDiff
using ForwardDiffChainRules
@ForwardDiff_frule Base.exp(x1::AbstractMatrix{<:ForwardDiff.Dual})
foo(x) =sum(exp(reshape(x, 2, 2)))
v =randn(4)
ForwardDiff.gradient(foo, v)
The error message is rather cryptic and could maybe be improved :)
The following snippet appears to fail due to a missing
frule
forexp(::Matrix)
(there's one forexp!(::Matrix)
only)The error message is rather cryptic and could maybe be improved :)
cc: @mohamed82008
The text was updated successfully, but these errors were encountered: