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

GC error #155

Closed
wsmoses opened this issue Nov 23, 2021 · 0 comments · Fixed by #156
Closed

GC error #155

wsmoses opened this issue Nov 23, 2021 · 0 comments · Fixed by #156
Assignees

Comments

@wsmoses
Copy link
Member

wsmoses commented Nov 23, 2021

using Enzyme

Enzyme.API.printall!(true)

t = 0.0

function tobedifferentiated(cond, a)::Float64
    if cond
        t + t
    else
        0.0
    end
end

autodiff(tobedifferentiated, true, Active(2.1))
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 a pull request may close this issue.

2 participants