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 155d05e
Show file tree
Hide file tree
Showing 2 changed files with 4 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
3 changes: 2 additions & 1 deletion ext/SparseDiffToolsEnzymeExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ 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 .= only(jacobian(
Reverse, a -> vec(f(reshape(a, size(x)))), vec(x); n_outs = Val(size(J, 1))))
return J
end

Expand Down

5 comments on commit 155d05e

@avik-pal
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error while trying to register: Register Failed
@avik-pal, it looks like you are not a publicly listed member/owner in the parent organization (JuliaDiff).
If you are a member/owner, you will need to change your membership to public. See GitHub Help

@avik-pal
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ChrisRackauckas can you trigger this

@ChrisRackauckas
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error while trying to register: Version 2.21.0 already exists

Please sign in to comment.