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

Forward-mode autodiff #51

Merged
merged 30 commits into from
Sep 5, 2023
Merged

Forward-mode autodiff #51

merged 30 commits into from
Sep 5, 2023

Conversation

samestep
Copy link
Contributor

@samestep samestep commented Jul 5, 2023

Resolves #26, using Weak pointers to cache JVP functions while computing them for the whole call graph. See also the followup issues #82, #83, and #84.

This PR marks some functions in rose::id as const for convenience, and also adds a new Unop::Sign which makes it easier to express the derivative of Unop::Abs (although we could have just used Select instead).

@samestep samestep changed the title Autodiff Jacobian-vector product Aug 30, 2023
@samestep samestep changed the title Jacobian-vector product Forward-mode autodiff Aug 30, 2023
@samestep samestep marked this pull request as ready for review September 5, 2023 19:05
@samestep samestep merged commit 4e90786 into main Sep 5, 2023
2 checks passed
@samestep samestep deleted the autodiff branch September 5, 2023 19:10
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.

Autodiff
2 participants