We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cfe69a commit f7b7c14Copy full SHA for f7b7c14
test/enzyme.jl
@@ -208,13 +208,16 @@ manual_jac = map(onehot(A)) do dA
208
y = A \ b1
209
sum(inv(A) * (db1 - dA*y))
210
end |> collect
211
+@show manual_jac
212
213
fd_jac = FiniteDiff.finite_difference_jacobian(fA, A) |> vec
214
+@show fd_jac
215
216
en_jac = map(onehot(A)) do dA
217
eres = Enzyme.autodiff(Forward, fA, Duplicated(copy(A), dA))
218
eres[1]
219
220
+@show en_jac
221
222
@test_broken en_jac ≈ manual_jac
223
@test_broken en_jac ≈ fd_jac
0 commit comments