You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SR-13149@derivative and @transpose type-checking diagnostic improvements
Issue Description:
It's not always obvious what should be the type of a custom derivative function, given an original function and wrt differentiability parameters.
It would be nice for the compiler to reliably show the correct derivative type in @derivative attribute type-checking diagnostics. This enables the workflow of "declaring a dummy derivative function declaration, then changing its type to the compiler-suggested correct type":
Additional Detail from JIRA
md5: f88754cc076ca8599227af088003d5d6
Parent-Task:
@derivative
and@transpose
type-checking diagnostic improvementsIssue Description:
It's not always obvious what should be the type of a custom derivative function, given an original function and
wrt
differentiability parameters.It would be nice for the compiler to reliably show the correct derivative type in
@derivative
attribute type-checking diagnostics. This enables the workflow of "declaring a dummy derivative function declaration, then changing its type to the compiler-suggested correct type":Currently, the expected derivative type isn't reliably shown:
But we can reliably show it if the original function declaration and differentiability parameters can be resolved.
The text was updated successfully, but these errors were encountered: