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

Add support for Enzyme #84

Merged
merged 1 commit into from
Jul 6, 2022
Merged

Add support for Enzyme #84

merged 1 commit into from
Jul 6, 2022

Conversation

devmotion
Copy link
Collaborator

@devmotion devmotion commented Jul 4, 2022

This PR adds support for AD with Enzyme.

Both forward- and reverse-mode AD are supported but generally it's only a start since forward-mode does not support chunks (could be implemented like in https://github.com/EnzymeAD/Enzyme.jl/blob/08cc6244c2d6abc2abe5e51d5877d1e02f4e0252/src/Enzyme.jl#L678-L689) and in reverse-mode the primal is computed separately (from the discussion in #83 it seems EnzymeAD/Enzyme.jl#107 or EnzymeAD/Enzyme.jl#334 is required?).

Nevertheless, since it seems work I thought I'll open a PR regardless of these deficiencies.

Fixes #83.

@tpapp
Copy link
Owner

tpapp commented Jul 6, 2022

Thanks for the nice PR, I will tag a release now.

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.

Enzyme.jl support?
2 participants