EnzymeAD / Enzyme.jl

Julia bindings for the Enzyme automatic differentiator
https://enzyme.mit.edu
MIT License
422 stars 58 forks source link

Julia crash when passing Ref of Mixed activity struct #1494

Closed m-bossart closed 2 weeks ago

m-bossart commented 4 weeks ago

I have a struct that is passed to the high level function that I am using with autodiff. The struct gives a mixed activity warning (as expected). I'm trying to bypass this by passing a reference to the variable instead per the example here: https://docs.sciml.ai/Enzyme/dev/faq/#Mixed-activity

When I run my code Julia crashes with the attached (long) error. I haven't yet been able to reproduce with a MWE but I'm hoping for some help interpreting the error message.

mixed_activity_ref_error.txt

vchuravy commented 4 weeks ago

Please post a MWE

wsmoses commented 2 weeks ago

With the recent mixed activity work landed and no MWE posted, I'm going to go ahead and close this as stale. Please reopen if it persists.