Skip to content

Commit

Permalink
Allow Zygote v0.7 (#188)
Browse files Browse the repository at this point in the history
* Update TullioChainRulesCoreExt.jl

* Update Project.toml
  • Loading branch information
mcabbott authored Jan 23, 2025
1 parent c3cf714 commit 52a1bd9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Tullio"
uuid = "bc48ee85-29a4-5162-ae0b-a64e1601d4bc"
authors = ["Michael Abbott"]
version = "0.3.8"
version = "0.3.9"

[deps]
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
Expand Down Expand Up @@ -29,13 +29,13 @@ FillArrays = "0.11, 0.12, 0.13, 1"
ForwardDiff = "0.10, 1.0"
KernelAbstractions = "0.9"
LoopVectorization = "0.12.101"
NamedDims = "0.2"
NamedDims = "0.2, 1"
OffsetArrays = "1"
Requires = "1"
TensorOperations = "4, 5"
Tracker = "0.2"
VectorizationBase = "0.21.23"
Zygote = "0.6.33"
Zygote = "0.6.33, 0.7"
julia = "1.10"

[extras]
Expand Down
2 changes: 1 addition & 1 deletion ext/TullioChainRulesCoreExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function ChainRulesCore.rrule(ev::Tullio.Eval, args...)
Z = ev.fwd(args...)
Z, function tullio_back(Δ)
isnothing(ev.rev) && error("no gradient definition here!")
dxs = map(ev.rev(Δ, Z, args...)) do dx
dxs = map(ev.rev(unthunk(Δ), Z, args...)) do dx
dx === nothing ? ChainRulesCore.ZeroTangent() : dx
end
tuple(ChainRulesCore.ZeroTangent(), dxs...)
Expand Down

2 comments on commit 52a1bd9

@mcabbott
Copy link
Owner 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.

Registration pull request created: JuliaRegistries/General/123591

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.3.9 -m "<description of version>" 52a1bd9e76dcb86f2d971669694ea96aff672884
git push origin v0.3.9

Also, note the warning: Version 0.3.9 skips over 0.3.8
This can be safely ignored. However, if you want to fix this you can do so. Call register() again after making the fix. This will update the Pull request.

Please sign in to comment.