Skip to content

Commit

Permalink
Fix ADTypes extension in Julia < 1.9 (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
devmotion authored Jul 24, 2023
1 parent d83793c commit e13061f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "LogDensityProblemsAD"
uuid = "996a588d-648d-4e1f-a8f0-a84b347e47b1"
authors = ["Tamás K. Papp <[email protected]>"]
version = "1.6.0"
version = "1.6.1"

[deps]
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
Expand Down
9 changes: 7 additions & 2 deletions ext/LogDensityProblemsADADTypesExt.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
module LogDensityProblemsADADTypesExt

import LogDensityProblemsAD
import ADTypes
if isdefined(Base, :get_extension)
import LogDensityProblemsAD
import ADTypes
else
import ..LogDensityProblemsAD
import ..ADTypes
end

"""
ADgradient(ad::ADTypes.AbstractADType, ℓ)
Expand Down

2 comments on commit e13061f

@devmotion
Copy link
Collaborator 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/88225

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 v1.6.1 -m "<description of version>" e13061ff72ddedb1fccf4deeb69f713972300239
git push origin v1.6.1

Please sign in to comment.