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

Safety make_zero! on repeated Enzyme calls with caches #1067

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

ChrisRackauckas
Copy link
Member

This should ensure that the caches are always zero'd for the derivatives.

@ChrisRackauckas
Copy link
Member Author

@ChrisRackauckas
Copy link
Member Author

For some reason this function fails Enzyme.Compiler.guaranteed_const_nongen(typeof(_pf), nothing) false and then in the next iterate it errors. It seems like make_zero! is not robust to active values in closures?

Project.toml Outdated Show resolved Hide resolved
@ChrisRackauckas
Copy link
Member Author

Current error is EnzymeAD/Enzyme.jl#1661

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.

2 participants