-
Notifications
You must be signed in to change notification settings - Fork 64
Closed
Description
The current design requires that rules have the form
function rrule(::typeof(foo), args...)
...
return (rule_arg_1, rule_arg_2, ...)
endI would like to propose to extend this to the following:
function rrule(foo::typeof(foo), args...)
...
return (rule_foo, rule_arg_1, rule_arg_2, ...)
endA lot of the time rule_foo will be a DNE, which is fine. However, if we're looking to implement rules for particular structs, then it may well be important to be able to represent the gradient w.r.t. the fields of the struct.
ChrisRackauckas and tkf
Metadata
Metadata
Assignees
Labels
No labels