-
Notifications
You must be signed in to change notification settings - Fork 7
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
Rules for builtins and intrinsics #208
Comments
A Note To Those Directed Here By An ErrorIf you were directed here by an error indicates that something is going wrong with in the interaction between this package and one of Julia's builtins / intrinsics, please leave a comment. Please copy + paste your stack trace, and provide a MWE if possible so that we can easily reproduce the problem. Context: there are a number of simple builtins / intrinsics in Julia which must have rules associated to them in order to differentiate them. At any given point in time, we should have rules for the vast majority of them, but probably won't have rules for all of them (they can change in non-breaking releases of Julia because they are not part of the public-facing interface, and there are some builtins / intrinsics that we just have not gotten around to implementing rules for yet because we have not found an example of them being used). All this is to say that it's normally quite straightforward for us to add a rule which supports a given builtin / intrinsic, and we're very keen to resolve such issues as soon as we become aware of them. My Original Reply to yebai
These are all documented inline with the code in the
Yes, and we're going to have to do something like this in order to maintain support for 1.10 once we start to support 1.11. Something like @static if VERSION >= v1.11
function rrule!!(...)
...
end
end etc should do it when we identify functions which only exist on specific versions. |
builtin
functions.
#206 and #203 added additional rules for missing
builtin
functions (lowest level primitives in Tapir). It would be helpful to know what other builtins lack rules and what would be required to support them all.In addition, is it possible to organise
builtin
rules by Julia's version and include them conditionally? This would be helpful for #180.The text was updated successfully, but these errors were encountered: