Skip to content

Commit

Permalink
test: new enzyme version
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Sep 26, 2024
1 parent 47bb1e2 commit 8620e58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors = [
"Pankaj Mishra <[email protected]>",
"Chris Rackauckas <[email protected]>",
]
version = "2.20.0"
version = "2.21.0"

[deps]
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
Expand Down Expand Up @@ -48,7 +48,7 @@ Adapt = "3, 4"
ArrayInterface = "7.4.2"
Compat = "4"
DataStructures = "0.18"
Enzyme = "0.11,0.12"
Enzyme = "0.13"
FiniteDiff = "2.8.1"
ForwardDiff = "0.10"
Graphs = "1"
Expand Down
2 changes: 1 addition & 1 deletion ext/SparseDiffToolsEnzymeExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function __gradient!(::Union{AutoSparse{<:AutoEnzyme}, AutoEnzyme}, f!, fx, x, c
end

function __jacobian!(J::AbstractMatrix, ::Union{AutoSparse{<:AutoEnzyme}, AutoEnzyme}, f, x)
J .= jacobian(Reverse, f, x, Val(size(J, 1)))
J .= jacobian(Reverse, a -> vec(f(reshape(a, size(x)))), vec(x); n_outs=size(J, 1))
return J
end

Expand Down

0 comments on commit 8620e58

Please sign in to comment.