-
-
Notifications
You must be signed in to change notification settings - Fork 216
Open
Labels
ChainRulesadjoint -> rrule, and further integrationadjoint -> rrule, and further integrationhelp wantedExtra attention is neededExtra attention is neededup for grabsanyone is welcome to contribute with a PR to fix the issueanyone is welcome to contribute with a PR to fix the issue
Description
This issue is about swapping Zygote over to use ChainRule's types by default.
When #366 is merged rules coming out of ChainRules will use its types like Composite and AbstractZero,
but thing created via Source Code Transform (SCT) will still use NamedTuple and nothing.
This is fine as they are mutually compatible because accum falls back to + and ChainRules overloads +.
The use of Base types in Zygote tends to cause issues as its hard to add methods for NamedTuple and nothing, due to type piracy.
Especially things like defining linear operations on them (e.g. overloading things from LinearAlgebra), as well as defining addition +.
Particular discussion on Composite ans structured differential types is in #462
devmotion and niklasschmitznickrobinson251, willtebbutt and AzamatB
Metadata
Metadata
Assignees
Labels
ChainRulesadjoint -> rrule, and further integrationadjoint -> rrule, and further integrationhelp wantedExtra attention is neededExtra attention is neededup for grabsanyone is welcome to contribute with a PR to fix the issueanyone is welcome to contribute with a PR to fix the issue