-
Notifications
You must be signed in to change notification settings - Fork 28
WIP: Add support for HyperHessian backend #940
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
base: main
Are you sure you want to change the base?
Changes from all commits
6517285
ece3b2c
3f32588
6f2f234
5e172fe
e440536
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,7 @@ We support the following dense backend choices from [ADTypes.jl](https://github. | |
| - [`AutoFiniteDifferences`](@extref ADTypes.AutoFiniteDifferences) | ||
| - [`AutoForwardDiff`](@extref ADTypes.AutoForwardDiff) | ||
| - [`AutoGTPSA`](@extref ADTypes.AutoGTPSA) | ||
| - [`AutoHyperHessians`](https://github.com/KristofferC/HyperHessians.jl) | ||
| - [`AutoMooncake`](@extref ADTypes.AutoMooncake) and [`AutoMooncakeForward`](@extref ADTypes.AutoMooncake) (the latter is experimental) | ||
| - [`AutoPolyesterForwardDiff`](@extref ADTypes.AutoPolyesterForwardDiff) | ||
| - [`AutoReverseDiff`](@extref ADTypes.AutoReverseDiff) | ||
|
|
@@ -32,11 +33,11 @@ In practice, many AD backends have custom implementations for high-level operato | |
| !!! details | ||
|
|
||
| In the rough summary table below, | ||
|
|
||
| - ✅ means that we reuse the custom implementation from the backend; | ||
| - ❌ means that a custom implementation doesn't exist, so we use our default fallbacks; | ||
| - 🔀 means it's complicated or not done yet. | ||
|
|
||
| | | `pf` | `pb` | `der` | `grad` | `jac` | `hess` | `hvp` | `der2` | | ||
| |:-------------------------- |:---- |:---- |:----- |:------ |:----- |:------ |:----- |:------ | | ||
| | `AutoChainRules` | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | | ||
|
|
@@ -48,6 +49,7 @@ In practice, many AD backends have custom implementations for high-level operato | |
| | `AutoFiniteDifferences` | 🔀 | ❌ | ❌ | ✅ | ✅ | ❌ | ❌ | ❌ | | ||
| | `AutoForwardDiff` | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | ||
| | `AutoGTPSA` | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | | ||
| | `AutoHyperHessians` | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ | | ||
| | `AutoMooncake` | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | | ||
| | `AutoMooncakeForward` | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | | ||
| | `AutoPolyesterForwardDiff` | 🔀 | ❌ | 🔀 | ✅ | ✅ | 🔀 | 🔀 | 🔀 | | ||
|
|
@@ -69,6 +71,7 @@ Moreover, each context type is supported by a specific subset of backends: | |
| | `AutoFiniteDifferences` | ✅ | ✅ | | ||
| | `AutoForwardDiff` | ✅ | ✅ | | ||
| | `AutoGTPSA` | ✅ | ❌ | | ||
| | `AutoHyperHessians` | ✅ | ✅ | | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think you support caches, that would require dealing with hyperdual element types
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, I thought that was just for example the |
||
| | `AutoMooncake` | ✅ | ✅ | | ||
| | `AutoMooncakeForward` | ✅ | ✅ | | ||
| | `AutoPolyesterForwardDiff` | ✅ | ✅ | | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding a comment to change this once the ADTypes exists