-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Test against Enzyme * Run JuliaFormatter Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Disable some CI tests for Enzyme testing purposes * Import ChainRule for find_alpha for Enzyme * Remove unnecessary whitespace Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Fixes to Enzyme extension * Enzyme test fixes * Remove unnecessary Enzyme settings * Code style * Apply suggestions from reviewdog Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Check broken symbols in tests * Add :Tapir to list of valid broken test marks Co-authored-by: Hong Ge <3279477+yebai@users.noreply.github.com> * Add Enzyme compat bounds * Code style Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Adjust when Enzyme tests are run * Improve Enzyme brokenness check * Don't check Enzyme AD for Julia < v1.10 * Reenable CI for Julia 1.6 * Misc tiny typos * Don't run Enzyme at all for Julia < v1.10 --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Hong Ge <3279477+yebai@users.noreply.github.com>
- Loading branch information
1 parent
bfd5ce4
commit b79c425
Showing
7 changed files
with
76 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module BijectorsEnzymeExt | ||
|
||
if isdefined(Base, :get_extension) | ||
using Enzyme: @import_frule, @import_rrule | ||
using Bijectors: find_alpha | ||
else | ||
using ..Enzyme: @import_frule, @import_rrule | ||
using ..Bijectors: find_alpha | ||
end | ||
|
||
@import_rrule typeof(find_alpha) Real Real Real | ||
@import_frule typeof(find_alpha) Real Real Real | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters