-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Promote ReverseDiff compile field to type #63
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is s a nice non-breaking way to handle it. And the bool route with constant prop still achieves the same effect.
One change, getproperty overload to add a depwarn on accessing the boolean. We'll want people to move to the type stable form, though there's no reason to force the change immediately (and that depwarn should probably be given at least a year or two given that the feature has been around since 2020) |
Yes it is breaking, see #63 (comment) |
How though? ad.compile is a Bool as it always was. |
Oh sorry I missed that part, thought you stored the Val directly. Then it's fine |
Needed for things like LuxDL/Lux.jl#642 where the return type needs to rely on whether the compiled tape needs to be returned.