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

Remove autodiff overhead #660

Open
calcmogul opened this issue Dec 13, 2024 · 0 comments
Open

Remove autodiff overhead #660

calcmogul opened this issue Dec 13, 2024 · 0 comments
Assignees
Labels
component: autodiff Autodiff type: enhancement New feature or request

Comments

@calcmogul
Copy link
Member

calcmogul commented Dec 13, 2024

The autodiff isn't fast enough for embedded environments.

Option 1: Code generation

Generating a linear sequence of stack operations would be faster. It should walk the autodiff tree as usual and write out the C++ expressions instead of computing them. A Doxygen comment should be generated for each function.

Option 2: Expression templates

Since the overhead comes from dynamic dispatch, we could use expression templates instead, though that could get complicated and increase compilation times.

https://en.wikipedia.org/wiki/Expression_templates

@calcmogul calcmogul added the type: enhancement New feature or request label Dec 13, 2024
@calcmogul calcmogul changed the title Code generation for autodiff Remove autodiff overhead Dec 13, 2024
@calcmogul calcmogul self-assigned this Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: autodiff Autodiff type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant