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

Optimize projinv in backward fallback #200

Open
juliohm opened this issue Nov 8, 2024 · 0 comments
Open

Optimize projinv in backward fallback #200

juliohm opened this issue Nov 8, 2024 · 0 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@juliohm
Copy link
Member

juliohm commented Nov 8, 2024

The backward fallback relies on projinv with Zygote-based AD. It turns out that Zygote.gradient can detect when a formula doesn't depend on any of the arguments, returning nothing instead of 0.0. We can use this information to reduce the computation in half in the Newton-Rhapson iteration.

@juliohm juliohm added good first issue Good for newcomers help wanted Extra attention is needed labels Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant