Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tapir.jl Usage #319

Merged
merged 35 commits into from
Jul 3, 2024
Merged

Tapir.jl Usage #319

merged 35 commits into from
Jul 3, 2024

Conversation

willtebbutt
Copy link
Member

@willtebbutt willtebbutt commented Jun 26, 2024

#318 made me intrigued to see how well Tapir.jl fares on Bijectors.jl. It looks like I just need to make use of Bijectors.jl's rule for find_alpha (a wrapper for a bisection routine) in order to make the tests pass, which is nice.

I'm a little surprised to be honest -- are we confident that the AD tests have decent coverage of the functionality in Bijectors.jl?

edit: test failures on 1.6 are to be expected, because Tapir.jl only supports 1.10 and above.

ext/BijectorsTapirExt.jl Outdated Show resolved Hide resolved
test/ad/utils.jl Outdated Show resolved Hide resolved
test/ad/utils.jl Outdated Show resolved Hide resolved
@yebai
Copy link
Member

yebai commented Jun 26, 2024

For a start, it is promising that current AD tests pass without any issues!

cc @torfjelde @mhauru

willtebbutt and others added 2 commits June 26, 2024 16:21
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Project.toml Outdated Show resolved Hide resolved
@willtebbutt
Copy link
Member Author

@yebai okay, this could in principle now be merged. Since Tapir.jl can't be installed on 1.6, I've had to install it conditionally, depending on whether the Julia version is 1.10 or greater.

ext/BijectorsTapirExt.jl Outdated Show resolved Hide resolved
@devmotion devmotion mentioned this pull request Jun 27, 2024
ext/BijectorsTapirExt.jl Outdated Show resolved Hide resolved
ext/BijectorsTapirExt.jl Outdated Show resolved Hide resolved
ext/BijectorsTapirExt.jl Outdated Show resolved Hide resolved
ext/BijectorsTapirExt.jl Outdated Show resolved Hide resolved
test/ad/chainrules.jl Outdated Show resolved Hide resolved
test/ad/chainrules.jl Outdated Show resolved Hide resolved
test/ad/chainrules.jl Outdated Show resolved Hide resolved
@willtebbutt
Copy link
Member Author

Okay. I think I'm basically happy with this. Once we get the sign off from @devmotion , if someone could please merge this (I don't have commit rights).

@yebai yebai requested a review from devmotion July 2, 2024 13:25
ext/BijectorsTapirExt.jl Outdated Show resolved Hide resolved
ext/BijectorsTapirExt.jl Outdated Show resolved Hide resolved
ext/BijectorsTapirExt.jl Outdated Show resolved Hide resolved
test/ad/chainrules.jl Outdated Show resolved Hide resolved
willtebbutt and others added 2 commits July 3, 2024 18:53
Co-authored-by: David Widmann <devmotion@users.noreply.github.com>
@yebai yebai merged commit 2849aca into master Jul 3, 2024
25 checks passed
@yebai yebai deleted the wct/tapir-ext branch July 3, 2024 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants